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

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

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