Ejemplo n.º 1
0
 public void AddOfficerCapabilities(ApiOfficerCapabilitiesClientResponseModel item)
 {
     if (!this.OfficerCapabilities.Any(x => x.Id == item.Id))
     {
         this.OfficerCapabilities.Add(item);
     }
 }
        public virtual ApiOfficerCapabilitiesClientRequestModel MapClientResponseToRequest(
            ApiOfficerCapabilitiesClientResponseModel response)
        {
            var request = new ApiOfficerCapabilitiesClientRequestModel();

            request.SetProperties(
                response.CapabilityId,
                response.OfficerId);
            return(request);
        }
        public virtual ApiOfficerCapabilitiesClientResponseModel MapClientRequestToResponse(
            int id,
            ApiOfficerCapabilitiesClientRequestModel request)
        {
            var response = new ApiOfficerCapabilitiesClientResponseModel();

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