[HttpPut("{id}")] // PUT public ActionResult <DbCombo> Edit([FromBody] DbCombo editCombo, int id) { try { editCombo.Id = id; return(Ok(_comboService.Edit(editCombo))); } catch (Exception e) { return(BadRequest(e.Message)); } }
[HttpPut("{id}")] // PUT public ActionResult <DbCombo> Edit([FromBody] DbCombo editCombo, int id) { try { editCombo.Id = id; return(Ok(_comboService.Edit(editCombo))); } catch (Exception e) { return(BadRequest(e.Message)); } }