// SUMMARY: Template -> Index page public ActionResult Index() { bool extendedAccess = true;// TODO: make this dynamic TemplateIndexModel model = new TemplateIndexModel(this.MobiContext, extendedAccess); return(View("~/Views/Template/Index.cshtml", model)); }
public IActionResult Index() { var model = new TemplateIndexModel(); model.CallQuickTemplates = _templatesService.GetAllCallQuickTemplatesForDepartment(DepartmentId); return(View(model)); }
public async Task <IActionResult> Index() { var model = new TemplateIndexModel(); model.CallQuickTemplates = await _templatesService.GetAllCallQuickTemplatesForDepartmentAsync(DepartmentId); return(View(model)); }
public async Task <ViewResult> Index() { var emailTemplates = await _queryExecutor.ExecuteAsync <GetAllEmailTemplateQuery, EmailTemplateDetailsDto>( new GetAllEmailTemplateQuery { UserId = GetUserId() }); var model = new TemplateIndexModel { EmailTemplate = emailTemplates }; return(View(model)); }
public ActionResult Index() { var model = new TemplateIndexModel(); model.Templates = Templates.LoadStubs(true); model.Permissions = Permissions.Load(User); string userID = User.GetUserID(); model.Templates.MineFilter = UserPreferences.Get <bool>(userID, "PageIndexMine"); return(View(model)); }