示例#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);
        }