Пример #1
0
        public ServerActionResult CreateAdmin(Admin create)
        {
            if (SessionController.GetSessionAuthorization(HttpContext) != Authorization.Admin)
            {
                return(new ServerActionResult(ServerActionResult.Status.Unauthorized));
            }

            ServerResponse response = new ServerResponse();

            response.Exception = AccountController.RegisterAdmin(create.Account, create);
            return(new ServerActionResult(ServerActionResult.Status.Ok, response));
        }