public object Post(AddProtein request) { var user = Repository.GetUsers(request.UserID); user.Total += request.Amount; Repository.UpdateUser(user); return new AddProteinResponse {NewTotal = user.Total}; }
public object Post(AddProtein request) { var user = Repository.GetUsers(request.UserID); user.Total += request.Amount; Repository.UpdateUser(user); return(new AddProteinResponse { NewTotal = user.Total }); }