Exemplo n.º 1
0
 public void AddParty(PropertyPartyModel propertyPartyModel)
 {
     if (CurrentProperty.PartyList == null)
     {
         CurrentProperty.PartyList = new ObservableCollection <PropertyPartyModel>();
     }
     CurrentProperty.PartyList.Add(propertyPartyModel);
 }
Exemplo n.º 2
0
 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;
 }
Exemplo n.º 3
0
        public async Task <int> DeletePropertyPartyAsync(PropertyPartyModel model)
        {
            var property = new PropertyParty {
                PropertyPartyId = model.PropertyPartyId
            };

            using (var dataService = DataServiceFactory.CreateDataService())
            {
                return(await dataService.DeletePropertyPartyAsync(property));
            }
        }
Exemplo n.º 4
0
        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);
        }