public IActionResult UpdateKnifeStore(string id, [FromBody] Kes_Bolt newKnifeStore) { try { knifeStoreLogic.UpdateKes_Bolt(id, newKnifeStore); return(Ok()); } catch (Exception ex) { return(StatusCode(400, $"Bad request error: {ex}")); } }
public IActionResult EditKesBolt(Kes_Bolt kb) { KnifeStoreLogic.UpdateKes_Bolt(kb.Raktar_Id, kb); return(RedirectToAction(nameof(ListKesBolt))); }