Пример #1
0
 public void AddVehicleOfficer(ApiVehicleOfficerClientResponseModel item)
 {
     if (!this.VehicleOfficers.Any(x => x.Id == item.Id))
     {
         this.VehicleOfficers.Add(item);
     }
 }
Пример #2
0
        public virtual ApiVehicleOfficerClientRequestModel MapClientResponseToRequest(
            ApiVehicleOfficerClientResponseModel response)
        {
            var request = new ApiVehicleOfficerClientRequestModel();

            request.SetProperties(
                response.OfficerId,
                response.VehicleId);
            return(request);
        }
Пример #3
0
        public virtual ApiVehicleOfficerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiVehicleOfficerClientRequestModel request)
        {
            var response = new ApiVehicleOfficerClientResponseModel();

            response.SetProperties(id,
                                   request.OfficerId,
                                   request.VehicleId);
            return(response);
        }