Beispiel #1
0
 // PUT: api/Arac/5
 public IHttpActionResult Put(int id, [FromBody] Musteri Musteri)
 {
     Musteri.MusteriID = id;
     if (MusteriBusiness.MusteriIdSec(id) == null)
     {
         return(NotFound());
     }
     else if (ModelState.IsValid == false)
     {
         return(BadRequest());
     }
     else
     {
         return(Ok(MusteriBusiness.MusteriGuncelle(Musteri)));
     }
 }