public ActionResult <Knight> DeleteKnight(int id) { try { return(Ok(_service.Delete(id))); } catch (System.Exception err) { return(BadRequest(err.Message)); } }
public ActionResult<Knight> Delete(int id) { try { return Ok(_service.Delete(id)); } catch (Exception e) { return BadRequest(e.Message); } }
public ActionResult <String> Delete(int id) { try { return(Ok(_ks.Delete(id))); } catch (Exception e) { return(BadRequest(e.Message)); } }
public ActionResult <Knight> Delete(int id) { _service.Delete(id); return(Ok("Successfuly deleted")); }
public ActionResult <bool> Delete(int id) { return(Ok(_service.Delete(id))); }