Esempio n. 1
0
 public bool YoneticiGuncelle(Yonetici entity)
 {
     try
     {
         using (var business = new YoneticiBusiness())
         {
             business.YoneticiGuncelle(entity);
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 2
0
 // 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)));
     }
 }