public CustomerMaster_ViewModel()
 {
     customerMaster            = new CustomerMaster_DataModel();
     customerAddressMaster     = new CustomerAddressMaster_DataModel();
     lst_customerMaster        = new List <CustomerMaster_DataModel>();
     lst_customerAddressMaster = new List <CustomerAddressMaster_DataModel>();
     lst_country = new List <Country_DataModel>();
     lst_order   = new List <OrderMaster>();
 }
 public OrderMaster_ViewModel()
 {
     orderMaster = new OrderMaster();
     lst_orderMaster = new List<OrderMaster>();
     order_Item_Details = new List<Order_Item_Details>();
     order_Status_History = new Order_Status_History();
     invoice_Status_History = new Invoice_Status_History();
     lst_Order_Status_History = new List<Order_Status_History>();
     lst_Invoice_Status_History = new List<Invoice_Status_History>();
     order_Invoice_Details = new List<Order_Invoice_Details>();
     customer_Address = new CustomerAddressMaster_DataModel();
     CustomerAddressList = new List<CustomerAddressMaster_DataModel>();
     paymentMaster = new Payment_DataModel();
 }
Example #3
0
 public FrontEndViewModel()
 {
     BestSellerProductList = new List <Product_DataModel>();
     FeaturedProductList   = new List <Product_DataModel>();
     RecentProductList     = new List <Product_DataModel>();
     ProductDetails        = new Product_DataModel();
     ProductPriceSKUList   = new List <ProductPriceSKU_DataModel>();
     ProductImageList      = new List <ProductImage_DataModel>();
     lst_CustomerRating    = new List <CustomerRating_DataModel>();
     CustomerRating        = new CustomerRating_DataModel();
     CustomerAddressList   = new List <CustomerAddressMaster_DataModel>();
     ProductPriceSKU       = new ProductPriceSKU_DataModel();
     customerAddresMaster  = new CustomerAddressMaster_DataModel();
     MenuList     = new List <Menu_DataModel>();
     ProductList  = new List <Product_DataModel>();
     CategoryList = new List <CategoryMasterDataModel>();
 }
        public string Insert_Data(CustomerAddressMaster_DataModel customerAddressMaster_DataModel)
        {
            string result = null;
            List <KeyValuePair <string, string> > insert_Parameters = new List <KeyValuePair <string, string> >();

            insert_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(customerAddressMaster_DataModel.Id)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Customer_Id", Convert.ToString(customerAddressMaster_DataModel.Customer_Id)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Street_1", Convert.ToString(customerAddressMaster_DataModel.Street_1)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Street_2", Convert.ToString(customerAddressMaster_DataModel.Street_2)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@City", Convert.ToString(customerAddressMaster_DataModel.City)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@State", Convert.ToString(customerAddressMaster_DataModel.State)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Pincode", Convert.ToString(customerAddressMaster_DataModel.Pincode)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@IsShipping", Convert.ToString(customerAddressMaster_DataModel.IsShipping)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@IsDelivery", Convert.ToString(customerAddressMaster_DataModel.IsDelivery)));
            insert_Parameters.Add(new KeyValuePair <string, string>("@Country", Convert.ToString(customerAddressMaster_DataModel.Country)));
            result = CustomerAddressMaster.Insert(insert_Parameters);

            return(result);
        }
 public CustomerAddressMaster_ViewModel()
 {
     customerAddresMaster     = new CustomerAddressMaster_DataModel();
     lst_customerAddresMaster = new List <CustomerAddressMaster_DataModel>();
 }