Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        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());
        }
Exemplo n.º 3
0
 public void DeleteLiveRole(LiveRole model)
 {
     LiveRoles.Remove(model);
     SaveChanges();
 }
Exemplo n.º 4
0
 public void CreateLiveRole(LiveRole model)
 {
     LiveRoles.Add(model);
     SaveChanges();
 }
Exemplo n.º 5
0
 public void UpdateLiveRole(LiveRole model)
 {
     LiveRoles.Update(model);
     SaveChanges();
 }