public ActionResult Put(int id, ResultViewModel resultVM) { bool updated = _resultsService.Update(id, resultVM); return(updated ? (ActionResult)Ok() : BadRequest()); }