예제 #1
0
 public IHttpActionResult Update(int id, Cars model)
 {
     if (carDal.IsCar(id) == false)
     {
         return(NotFound());
     }
     else if (ModelState.IsValid == false)
     {
         return(BadRequest(ModelState));
     }
     else
     {
         return(Ok(carDal.Update(id, model)));
     }
 }