// DELETE: api/Arac/5 public IHttpActionResult Delete(int id) { if (YoneticiBusiness.YoneticiIdSec(id) == null) { return(NotFound()); } return(Ok(YoneticiBusiness.YoneticiIdSil(id))); }
public bool YoneticiIdSil(int id) { try { using (var business = new YoneticiBusiness()) { business.YoneticiIdSil(id); } return(true); } catch (Exception) { return(false); } }