Beispiel #1
0
        public virtual async Task <ActionResult> BanUser(Guid?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            if (await _userManager.IsSystemUser(id.Value))
            {
                return(Content("system"));
            }
            var userViewModel = await _userManager.Ban(id.Value, true);

            return(PartialView(MVC.User.Views._UserItem, userViewModel));
        }