Skip to main content

Controller

Go To Naming Conventions

For information regarding Controllers, click the images below

image-1602130775935.png

 

  • Each controller must implement the IController interface directly or indirectly, this must be done using the BaseController
namespace SignifyHR.Areas.Portal.Controllers
{
    public class HomeController : BaseController
    {
        [UserTranslationFilter]
        public ActionResult Index(PortalTabs? activeTab)
        {
            var model = new HomeViewModel(SessionHandler, activeTab)
            {
                Title = TranslationResources.PageHeadingsLmsPortal,
            };

            return View(model);
        }
 }
  • TODO from v8 - MVC Examples

https://signature.signifyhr.co.za/books/tools/page/v8---mvc-development/edit

When to use ActionResult and JSONResult

AllowGet

Follow C# standards