Esempio n. 1
0
 public void AddCustomerCommunication(ApiCustomerCommunicationClientResponseModel item)
 {
     if (!this.CustomerCommunications.Any(x => x.Id == item.Id))
     {
         this.CustomerCommunications.Add(item);
     }
 }
Esempio n. 2
0
        public virtual ApiCustomerCommunicationClientRequestModel MapClientResponseToRequest(
            ApiCustomerCommunicationClientResponseModel response)
        {
            var request = new ApiCustomerCommunicationClientRequestModel();

            request.SetProperties(
                response.CustomerId,
                response.DateCreated,
                response.EmployeeId,
                response.Notes);
            return(request);
        }
Esempio n. 3
0
        public virtual ApiCustomerCommunicationClientResponseModel MapClientRequestToResponse(
            int id,
            ApiCustomerCommunicationClientRequestModel request)
        {
            var response = new ApiCustomerCommunicationClientResponseModel();

            response.SetProperties(id,
                                   request.CustomerId,
                                   request.DateCreated,
                                   request.EmployeeId,
                                   request.Notes);
            return(response);
        }