Beispiel #1
0
 public void AddCallPerson(ApiCallPersonClientResponseModel item)
 {
     if (!this.CallPersons.Any(x => x.Id == item.Id))
     {
         this.CallPersons.Add(item);
     }
 }
Beispiel #2
0
        public virtual ApiCallPersonClientRequestModel MapClientResponseToRequest(
            ApiCallPersonClientResponseModel response)
        {
            var request = new ApiCallPersonClientRequestModel();

            request.SetProperties(
                response.Note,
                response.PersonId,
                response.PersonTypeId);
            return(request);
        }
Beispiel #3
0
        public virtual ApiCallPersonClientResponseModel MapClientRequestToResponse(
            int id,
            ApiCallPersonClientRequestModel request)
        {
            var response = new ApiCallPersonClientResponseModel();

            response.SetProperties(id,
                                   request.Note,
                                   request.PersonId,
                                   request.PersonTypeId);
            return(response);
        }