public ActionResult RoleActionMapping(Guid UniqueId) { RoleActionMappings roleActionMapping = new RoleActionMappings(); RoleMaster roleMaster = roleMasterService.FindBy(x => x.UniqueId == UniqueId).FirstOrDefault(); roleActionMapping.RoleId = roleMaster.UniqueId; roleActionMapping.RoleName = roleMaster.Name; roleActionMapping.Action = actionMasterService.GetAll().ToList(); roleActionMapping.RoleActionMapping = roleActionMappingService.GetAll().Where(x => x.RoleMasterId == UniqueId && x.IsActive == true).ToList(); return(View(roleActionMapping)); }
// GET: ActionMasters public ActionResult Index() { return(View(actionMasterService.GetAll().ToList())); }