public Guid CreateCallForServiceVehicle(Guid callForServiceId, CallForServiceVehicleDetails details) { var callForServiceVehicle = CreateSummaryEntity(callForServiceId, details, (agency, id) => new CallForServiceVehicle(IdentityId, agency, id), (summary, vehicle) => summary.CallForServiceVehicles.Add(vehicle)); return(callForServiceVehicle.Id); }
public void UpdateCallForServiceVehicle(CallForServiceVehicleDetails details) { Update <CallForServiceVehicle, CallForServiceVehicleDetails>(details); }
public CallForServiceVehicleDetails CreateVehicle(Guid id, CallForServiceVehicleDetails section) { section.Id = _summaryCommandService.CreateCallForServiceVehicle(id, section); return(section); }
public void UpdateVehicle(CallForServiceVehicleDetails section) { _summaryCommandService.UpdateCallForServiceVehicle(section); }