Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 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);
 }