Beispiel #1
0
        public async Task <IActionResult> SignInAsync(RegisterModel model)
        {
            try
            {
                var response = await _register.ExecuteAsync(model);

                if (response.IsSuccess)
                {
                    return(Ok());
                }
                return(BadRequest(response.Errors.Select(e => e.Message)));
            }
            catch (Exception e)
            {
                return(BadRequest());

                throw;
            }
        }