public object Post(AddUser request) { //Add user return new AddUserResponse { UserId = 10 }; }
public object Post(AddUser request) { var id = Repository.AddUser(request.Name, request.Goal); //Add user return new AddUserResponse { UserId = id }; }