public ActionResult <Truck> Create(Truck truck) { _truckService.Create(truck); return(CreatedAtRoute("GetTruck", new { id = truck.Id.ToString() }, truck)); }
public ActionResult <Truck> Create(Truck truck) { _truckService.Create(truck); return(CreatedAtRoute("GetTruck", new { id = truck.Id.ToString() }, truck)); }