Пример #1
0
        public IActionResult ActivateUser(int id)
        {
            string sErrorMessage;

            oUserRepository.ActivateAccount(id, out sErrorMessage);

            if (!string.IsNullOrEmpty(sErrorMessage))
            {
                return(BadRequest(new { Message = sErrorMessage }));
            }
            else
            {
                return(Ok("Your account has been activated!"));
            }
        }