Exemplo n.º 1
0
        public ActionResult DeleteUser(Guid UserGuid)
        {
            Message         message         = new Message();
            UserDomainLogic userdomainLogic = new UserDomainLogic();

            if (userdomainLogic.DeleteUser(UserGuid))
            {
                ModelState.Clear();
                message.MessageText = "User has been deleted successfully.";
                message.MessageType = MessageType.Success;
            }
            else
            {
                message.MessageText = "User deletion failed.";
                message.MessageType = MessageType.Error;
            }

            return(Json(message, JsonRequestBehavior.AllowGet));
        }