// [TypeFilter(typeof(AuthorizeAction), Arguments = new object[] { "Read" })] public IActionResult SummaryView() { ClientAccountMappingViewModel model = new ClientAccountMappingViewModel(); InitAccessModel(model); return(View(model)); }
// [TypeFilter(typeof(AuthorizeAction), Arguments = new object[] { "Write" })] public IActionResult Index() { ClientAccountMappingViewModel model = new ClientAccountMappingViewModel(); InitAccessModel(model); model.ClientList = _interface.ClientList(); model.AccountTypeList = _interface.AccountTypeList(); model.EmployeList = _interface.EmployeeList(); return(View(model)); }
// [TypeFilter(typeof(AuthorizeAction), Arguments = new object[] { "Write" })] public IActionResult Update(long ID) { ClientAccountMappingViewModel model = new ClientAccountMappingViewModel(); model.AccountsMapping = _interface.GetDataByID(ID); model.ClientList = _interface.ClientList(); model.AccountTypeList = _interface.AccountTypeList(); model.EmployeList = _interface.EmployeeList(); InitAccessModel(model); return(View("Index", model)); }
public IActionResult AddUpdate(ClientAccountMappingViewModel model) { JsonResponse resp = new JsonResponse(); if (ModelState.IsValid) { return(Json(_interface.AddUpdate(model.AccountsMapping))); } else { resp.Message = Constants.ControllerMessage.All_Fields_Mandatory; return(Json(resp)); } }