public IActionResult OnGet() { if (!LiveAccountUtility.Authority?.Advanced?.IsUserAllowed(User) ?? false) { throw Authority.New_UnauthorizedAccessException; } Input = _liveAccountManager.LiveRoles.Find(Guid.Parse(Request.Query["Id"])); return(Page()); }
public IActionResult OnGet() { if (!LiveAccountUtility.Authority?.Advanced?.IsUserAllowed(User) ?? false) { throw Authority.New_UnauthorizedAccessException; } Input = _liveAccountManager.LiveRoles.Find(Guid.Parse(Request.Query["Id"])); ViewData["LiveOperations"] = _liveAccountManager.LiveRoleOperations.ToArray(); ViewData["RoleLiveOperations"] = _liveAccountManager.GetRoleOperations(Input.Id); return(Page()); }
public void DeleteLiveRole(LiveRole model) { LiveRoles.Remove(model); SaveChanges(); }
public void CreateLiveRole(LiveRole model) { LiveRoles.Add(model); SaveChanges(); }
public void UpdateLiveRole(LiveRole model) { LiveRoles.Update(model); SaveChanges(); }