public void Put(Guid id, [FromBody] ContractDto carClass) { _contractService.Update(carClass.ToObject(), id); }
public void Post([FromBody] ContractDto car) { _contractService.Insert(car.ToObject()); }