public void AddVendor(PropertyCheckListVendorModel propertyVendorModel) { if (CurrentPropertyCheckList.VendorList == null) { CurrentPropertyCheckList.VendorList = new ObservableCollection <PropertyCheckListVendorModel>(); } CurrentPropertyCheckList.VendorList.Add(propertyVendorModel); }
private void UpdateVendorFromModel(PropertyCheckListVendor target, PropertyCheckListVendorModel source) { target.VendorId = source.VendorId; target.VendorName = source.VendorName; target.PropertyCheckListId = source.PropertyCheckListId; target.CheckListVendorId = source.CheckListVendorId; target.IsPrimaryVendor = source.IsPrimaryVendor; target.IsGroup = source.IsGroup; }