Пример #1
0
        public IHttpActionResult ActivateUser(UsernameSpecificBindingModel model)
        {
            int response = _adminLog.ActivateUser(model.Username);

            if (response == 1)
            {
                return(Ok("User Activated"));
            }

            return(BadRequest("Could not activate the user. Please try again."));
        }