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 })); }