public ActionResult <User> Put(int id, [FromBody] Cover cover) { if (id < 1 || id != cover.Id) { return(BadRequest("Parameter Id and Order Id must be the same")); } return(Ok(_coverService.UpdateCover(cover))); }