public IHttpActionResult PutKirala(int arac, [FromBody] Arac Arac) { Arac.AracID = arac; if (AracBusiness.AracIdSec(arac) == null) { return(NotFound()); } else if (ModelState.IsValid == false) { return(BadRequest()); } else { return(Ok(AracBusiness.AracKirala(Arac))); } }