public Devise Put([FromBody] Devise dvs) { if (ModelState.IsValid) { _DeviseService.Update(dvs); } return(dvs); }
public ActionResult <Devise> Put([FromBody] Devise devise) { var res = _DeviseService.Update(devise); if (res is null) { return(BadRequest()); } else { return(devise); } }