Пример #1
0
 public void AddFamily(ApiFamilyResponseModel item)
 {
     if (!this.Families.Any(x => x.Id == item.Id))
     {
         this.Families.Add(item);
     }
 }
Пример #2
0
        public virtual ApiFamilyRequestModel MapResponseToRequest(
            ApiFamilyResponseModel response)
        {
            var request = new ApiFamilyRequestModel();

            request.SetProperties(
                response.Note,
                response.PrimaryContactEmail,
                response.PrimaryContactFirstName,
                response.PrimaryContactLastName,
                response.PrimaryContactPhone);
            return(request);
        }