Example #1
0
        public void DeleteData(ModelNotifiedForCustomerCustomerDemo modelNotifiedForCustomerCustomerDemo, out string error)
        {
            CustomerCustomerDemoGenericREST CustomerCustomerDemoGenericREST = new CustomerCustomerDemoGenericREST(wpfConfig);
            DeleteCustomerCustomerDemoView  deleteCustomerCustomerDemoView  = new DeleteCustomerCustomerDemoView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerCustomerDemo), modelNotifiedForCustomerCustomerDemo, typeof(DeleteCustomerCustomerDemoView), deleteCustomerCustomerDemoView);
            CustomerCustomerDemoGenericREST.Delete(deleteCustomerCustomerDemoView, out error);
        }
Example #2
0
        public void SaveData(ModelNotifiedForCustomerCustomerDemo modelNotifiedForCustomerCustomerDemo, out string error)
        {
            CustomerCustomerDemoGenericREST CustomerCustomerDemoGenericREST = new CustomerCustomerDemoGenericREST(wpfConfig);
            UpdateCustomerCustomerDemoView  updateCustomerCustomerDemoView  = new UpdateCustomerCustomerDemoView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerCustomerDemo), modelNotifiedForCustomerCustomerDemo, typeof(UpdateCustomerCustomerDemoView), updateCustomerCustomerDemoView);
            CustomerCustomerDemoGenericREST.Update(updateCustomerCustomerDemoView, out error);
        }
Example #3
0
        public void AddData(ModelNotifiedForCustomerCustomerDemo modelNotifiedForCustomerCustomerDemo, out string error)
        {
            CustomerCustomerDemoGenericREST CustomerCustomerDemoGenericREST = new CustomerCustomerDemoGenericREST(wpfConfig);
            CreateCustomerCustomerDemoView  createCustomerCustomerDemoView  = new CreateCustomerCustomerDemoView();

            Cloner.CopyAllTo(typeof(ModelNotifiedForCustomerCustomerDemo), modelNotifiedForCustomerCustomerDemo, typeof(CreateCustomerCustomerDemoView), createCustomerCustomerDemoView);
            CustomerCustomerDemoGenericREST.Insert(createCustomerCustomerDemoView, out error);
        }
Example #4
0
        public ModelNotifiedForCustomerCustomerDemo GetCustomerCustomerDemoByID(string CustomerID, string CustomerTypeID, out string error)
        {
            error = null;
            CustomerCustomerDemoGenericREST      CustomerCustomerDemoGenericREST      = new CustomerCustomerDemoGenericREST(wpfConfig);
            GetCustomerCustomerDemoView          getCustomerCustomerDemoView          = CustomerCustomerDemoGenericREST.GetByPK <GetCustomerCustomerDemoView>(CustomerID, CustomerTypeID, out error)[0];
            ModelNotifiedForCustomerCustomerDemo modelNotifiedForCustomerCustomerDemo = new ModelNotifiedForCustomerCustomerDemo();

            Cloner.CopyAllTo(typeof(GetCustomerCustomerDemoView), getCustomerCustomerDemoView, typeof(ModelNotifiedForCustomerCustomerDemo), modelNotifiedForCustomerCustomerDemo);
            return(modelNotifiedForCustomerCustomerDemo);
        }
Example #5
0
        public List <ModelNotifiedForCustomerCustomerDemo> GetAllCustomerCustomerDemo(out string error)
        {
            CustomerCustomerDemoGenericREST             CustomerCustomerDemoGenericREST      = new CustomerCustomerDemoGenericREST(wpfConfig);
            List <ModelNotifiedForCustomerCustomerDemo> modelNotifiedForCustomerCustomerDemo = CustomerCustomerDemoGenericREST.GetAll <ModelNotifiedForCustomerCustomerDemo>(100, 0, out error);

            if (!string.IsNullOrEmpty(error))
            {
                return(null);
            }

            //Initializing row status
            foreach (var item in modelNotifiedForCustomerCustomerDemo)
            {
                item.ItemChanged = false;
                item.NewItem     = false;
            }

            return(modelNotifiedForCustomerCustomerDemo);
        }