Esempio n. 1
0
 public void AddVehicleOfficer(ApiVehicleOfficerClientResponseModel item)
 {
     if (!this.VehicleOfficers.Any(x => x.Id == item.Id))
     {
         this.VehicleOfficers.Add(item);
     }
 }
Esempio n. 2
0
        public virtual ApiVehicleOfficerClientRequestModel MapClientResponseToRequest(
            ApiVehicleOfficerClientResponseModel response)
        {
            var request = new ApiVehicleOfficerClientRequestModel();

            request.SetProperties(
                response.OfficerId,
                response.VehicleId);
            return(request);
        }
Esempio n. 3
0
        public virtual ApiVehicleOfficerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiVehicleOfficerClientRequestModel request)
        {
            var response = new ApiVehicleOfficerClientResponseModel();

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