Example #1
0
        public object Post(CreateUserRequest request)
        {
            var userAuth    = request.ConvertTo <UserAuth>();
            var createdUser = userAuthRepository.CreateUserAuth(userAuth, request.Password ?? CreateRandomPassword());

            return(Get(new GetUserByIdRequest {
                Id = createdUser.Id
            }));
        }