public void DeleteData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error) { CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig); DeleteCustomerDemographicsView deleteCustomerDemographicsView = new DeleteCustomerDemographicsView(); Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(DeleteCustomerDemographicsView), deleteCustomerDemographicsView); CustomerDemographicsGenericREST.Delete(deleteCustomerDemographicsView, out error); }
public void DeleteData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error) { CustomerDemographicsBsn bsn = new CustomerDemographicsBsn(wpfConfig); CustomerDemographicsInfo dbItem = new CustomerDemographicsInfo(); Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(CustomerDemographicsInfo), dbItem); bsn.DeleteByID(dbItem, out error); }
public void AddData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error) { CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig); CreateCustomerDemographicsView createCustomerDemographicsView = new CreateCustomerDemographicsView(); Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(CreateCustomerDemographicsView), createCustomerDemographicsView); CustomerDemographicsGenericREST.Insert(createCustomerDemographicsView, out error); }
public void SaveData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error) { CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig); UpdateCustomerDemographicsView updateCustomerDemographicsView = new UpdateCustomerDemographicsView(); Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(UpdateCustomerDemographicsView), updateCustomerDemographicsView); CustomerDemographicsGenericREST.Update(updateCustomerDemographicsView, out error); }
public void AddData(ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics, out string error) { CustomerDemographicsBsn bsn = new CustomerDemographicsBsn(wpfConfig); CustomerDemographicsInfo dbItem = new CustomerDemographicsInfo(); Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics, typeof(CustomerDemographicsInfo), dbItem); bsn.InsertOne(dbItem, out error); modelNotifiedForCustomerDemographics.NewItem = false; Cloner.CopyAllTo(typeof(CustomerDemographicsInfo), dbItem, typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics); }
public ModelNotifiedForCustomerDemographics GetCustomerDemographicsByID(string CustomerTypeID, out string error) { error = null; CustomerDemographicsBsn bsn = new CustomerDemographicsBsn(wpfConfig); CustomerDemographicsInfo dbItem = bsn.GetValueByID(CustomerTypeID); ModelNotifiedForCustomerDemographics item = new ModelNotifiedForCustomerDemographics(); Cloner.CopyAllTo(typeof(CustomerDemographicsInfo), dbItem, typeof(ModelNotifiedForCustomerDemographics), item); return(item); }
public ModelNotifiedForCustomerDemographics GetCustomerDemographicsByID(string CustomerTypeID, out string error) { error = null; CustomerDemographicsGenericREST CustomerDemographicsGenericREST = new CustomerDemographicsGenericREST(wpfConfig); GetCustomerDemographicsView getCustomerDemographicsView = CustomerDemographicsGenericREST.GetByPK <GetCustomerDemographicsView>(CustomerTypeID, out error)[0]; ModelNotifiedForCustomerDemographics modelNotifiedForCustomerDemographics = new ModelNotifiedForCustomerDemographics(); Cloner.CopyAllTo(typeof(GetCustomerDemographicsView), getCustomerDemographicsView, typeof(ModelNotifiedForCustomerDemographics), modelNotifiedForCustomerDemographics); return(modelNotifiedForCustomerDemographics); }