Example #1
0
 public void AddVPerson(ApiVPersonResponseModel item)
 {
     if (!this.VPersons.Any(x => x.PersonId == item.PersonId))
     {
         this.VPersons.Add(item);
     }
 }
Example #2
0
        public virtual ApiVPersonRequestModel MapResponseToRequest(
            ApiVPersonResponseModel response)
        {
            var request = new ApiVPersonRequestModel();

            request.SetProperties(
                response.PersonName);
            return(request);
        }
Example #3
0
        public virtual ApiVPersonResponseModel MapRequestToResponse(
            int personId,
            ApiVPersonRequestModel request)
        {
            var response = new ApiVPersonResponseModel();

            response.SetProperties(personId,
                                   request.PersonName);
            return(response);
        }