public IHttpActionResult AracDelete(int id) { var content = new ResponseContent <araclar>(null); using (var ar = new AraclarRepository()) { content.Result = ar.AracDelete(id) ? "1" : "0"; return(new StandartResult <araclar>(content, Request)); } }
public bool AracDelete(int id) { try { using (var araclar = new AraclarRepository()) { araclar.AracDelete(id); } return(true); } catch (Exception) { return(false); } }