public CustomerRating_ViewModel() { CustomerRating = new CustomerRating_DataModel(); lst_CustomerRating = new List <CustomerRating_DataModel>(); lst_Product = new List <Product_DataModel>(); lst_customerMaster = new List <CustomerMaster_DataModel>(); }
public CustomerRating_DataModel GetCustomerRatingById(int Id) { CustomerRating_DataModel obj_cr = new CustomerRating_DataModel(); List <KeyValuePair <string, string> > getByID_Parameters = new List <KeyValuePair <string, string> >(); getByID_Parameters.Add(new KeyValuePair <string, string>("@Id", Convert.ToString(Id))); obj_cr = JsonConvert.DeserializeObject <CustomerRating_DataModel>(obj_CustomerRating_DAL.GetByID(getByID_Parameters)); return(obj_cr); }
public string InsertCustomerRating(CustomerRating_DataModel CR_Model) { string result = ""; List <KeyValuePair <string, string> > insert_Parameters = new List <KeyValuePair <string, string> >(); insert_Parameters.Add(new KeyValuePair <string, string>("@Customer_Id", Convert.ToString(CR_Model.Customer_Id))); insert_Parameters.Add(new KeyValuePair <string, string>("@Product_Id", Convert.ToString(CR_Model.Product_Id))); insert_Parameters.Add(new KeyValuePair <string, string>("@Rating", Convert.ToString(CR_Model.Rating))); insert_Parameters.Add(new KeyValuePair <string, string>("@Reviews", Convert.ToString(CR_Model.Reviews))); insert_Parameters.Add(new KeyValuePair <string, string>("@Date", Convert.ToString(CR_Model.Date))); insert_Parameters.Add(new KeyValuePair <string, string>("@IsActive", Convert.ToString(CR_Model.IsActive))); result = obj_CustomerRating_DAL.Insert(insert_Parameters); return(result); }
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>(); }