public ActionResult GetReleaseDays(int id) { var validation = _validator.ValidateGetReleaseDays(id); if (!validation.IsValid) { return(BadRequest(new { error = validation.ErrorMessage })); } var user = _memberRepo.GetMember(id); var releaseDays = user.DaysToRelease() + " days till release."; return(Accepted($"api/members/{user.Id}", releaseDays)); }