public void AddParty(PropertyPartyModel propertyPartyModel) { if (CurrentProperty.PartyList == null) { CurrentProperty.PartyList = new ObservableCollection <PropertyPartyModel>(); } CurrentProperty.PartyList.Add(propertyPartyModel); }
private void UpdatePropertyPartyFromModel(PropertyParty target, PropertyPartyModel source) { target.PropertyPartyId = source.PropertyPartyId; target.PropertyGuid = source.PropertyGuid; target.PartyId = source.PartyId; target.PropertyId = source.PropertyId; target.IsGroup = source.IsGroup; target.IsPrimaryParty = source.IsPrimaryParty; }
public async Task <int> DeletePropertyPartyAsync(PropertyPartyModel model) { var property = new PropertyParty { PropertyPartyId = model.PropertyPartyId }; using (var dataService = DataServiceFactory.CreateDataService()) { return(await dataService.DeletePropertyPartyAsync(property)); } }
static public async Task <PropertyPartyModel> CreatePropertyPartyModelAsync(PropertyParty source) { var model = new PropertyPartyModel() { PropertyPartyId = source.PropertyPartyId, PropertyGuid = source.PropertyGuid, PartyId = source.PartyId, PropertyId = source.PropertyId, PartyName = source.PartyName, IsGroup = source.IsGroup, IsPrimaryParty = source.IsPrimaryParty }; return(model); }