public List <Purchase> GetPurchases(AllDataTableContext context) { List <Purchase> Purchases = new List <Purchase>() { new Purchase { //Id = , //Prid = , //Pid = context.ProductTable.Find(0).Pid, //foreign key convert issue Itemname = "", Category = "", Itemfor = "", Sizes = "", Quantity = 0, Price = 0, TotalPrice = 0, Currency = "", Cost = 0, Offer = 0, Purchasedby = "", Phonenumber = "", address = "", //PurchaseDate = "time" } }; return(Purchases); }
//-----------X END OF NON DB RELATED BUT DATA MANUPULATION METHODS & FUNCTIONALITIES X-------// //----------------- START OF NON USED & BASICALLY For Dummy Data Creation Purpose ---------------------// public List <User> GetUsers(AllDataTableContext context) { List <User> Users = new List <User>() { new User { //Id = , Username = "", Firstname = "", Lastname = "", Gender = "", Email = "", Phonenumber = "", address = "", Password = "", Usertype = "" } }; return(Users); }
public List <Product> GetProducts(AllDataTableContext context) { List <Product> Products = new List <Product>() { new Product { //Id = , //Pid = , Itemname = "", Category = "", Itemfor = "", Sizes = "", Available = 0, Price = 0, Currency = "", Cost = 0, Offer = 0 } }; return(Products); }