Exemplo n.º 1
0
        public IActionResult CheckAvailability(string userName)
        {
            IActionResult response;

            try
            {
                response = new OkObjectResult(_account.CheckAvailability(userName));
            }
            catch (Exception e)
            {
                response = BadRequest(e);
            }
            return(response);
        }