Beispiel #1
0
 public void AddUnitOfficer(ApiUnitOfficerClientResponseModel item)
 {
     if (!this.UnitOfficers.Any(x => x.Id == item.Id))
     {
         this.UnitOfficers.Add(item);
     }
 }
Beispiel #2
0
        public virtual ApiUnitOfficerClientRequestModel MapClientResponseToRequest(
            ApiUnitOfficerClientResponseModel response)
        {
            var request = new ApiUnitOfficerClientRequestModel();

            request.SetProperties(
                response.OfficerId,
                response.UnitId);
            return(request);
        }
Beispiel #3
0
        public virtual ApiUnitOfficerClientResponseModel MapClientRequestToResponse(
            int id,
            ApiUnitOfficerClientRequestModel request)
        {
            var response = new ApiUnitOfficerClientResponseModel();

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