public bool YoneticiGuncelle(Yonetici entity) { try { using (var business = new YoneticiBusiness()) { business.YoneticiGuncelle(entity); } return(true); } catch (Exception) { return(false); } }
// PUT: api/Arac/5 public IHttpActionResult Put(int id, [FromBody] Yonetici Yonetici) { Yonetici.YoneticiID = id; if (YoneticiBusiness.YoneticiIdSec(id) == null) { return(NotFound()); } else if (ModelState.IsValid == false) { return(BadRequest()); } else { return(Ok(YoneticiBusiness.YoneticiGuncelle(Yonetici))); } }