Exemplo n.º 1
0
        public ActionResult Registration(RegistrationRequest request)
        {
            var userId = _userRepository.AddUser(request);

            if (userId == Guid.Empty)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.Conflict));
            }

            EmailUtils.SendRegistrationEmail(request.FullName, userId, request.Email);

            return(new HttpStatusCodeResult(HttpStatusCode.OK));
        }