public static Orders AddOrder(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount, decimal totalAmount, decimal tax, decimal grandTotal, decimal discount, decimal finalAmount) { var orders = new Orders(customerName, productName, price, quantity, amount, totalAmount, tax, grandTotal, discount, finalAmount); orders.AddtoOrder(productName, price); db.order.Add(orders); db.SaveChanges(); return(orders); }
public string Save(int productId, NameofProduct productName, NameOfBrand brandName, decimal productPrice, int quantity) { ProductId = productId; ProductName = productName; BrandName = brandName; ProductPrice = productPrice; Quantity = quantity; return("Save product details"); }
public StockDetails(int productId, NameofProduct productName, NameOfBrand brandName, string avaiablequty) : this() { AvaiableQuty = avaiablequty; }
public StockDetails(int productId, NameofProduct productName, NameOfBrand brandName) : this(productName) { BrandName = brandName; }
public StockDetails(NameofProduct productName) : this() { ProductName = productName; }
public Product(int productId, NameofProduct productName, NameOfBrand brandName, decimal productPrice, int quantity) : this() { Quantity = quantity; }
public Product(NameofProduct productName, NameOfBrand brandName) : this(productName) { BrandName = brandName; }
public Product(NameofProduct productName) : this() { ProductName = productName; }
public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount) : this(quantity) { Amount = amount; }
public Orders(string customerName, NameofProduct productName, decimal price, string quantity) : this() { Quantity = quantity; }
public Orders(string customerName, NameofProduct productName, decimal price) : this() { Price = price; }
public Orders(string customerName, NameofProduct productName) : this() { ProductName = productName; }
/// <summary> /// Delete which is already in the order /// </summary> /// <param name="productName">product name</param> /// <param name="price">price of the product</param> /// <returns>return total price of that order</returns> public string DetelefromOrder(NameofProduct productName, decimal price) { ProductName = productName; Price = price; return("Total Price"); }
/// <summary> /// /// </summary> /// <param name="customerName">enter customer name</param> /// <param name="productName">productname which the customer want to bye </param> /// <param name="price">price given to the product</param> /// <param name="quantity">quantityof the product</param> /// <param name="amount">amount of products </param> /// <param name="totalAmount">total amount of all purchases</param> /// <param name="tax">tax </param> /// <param name="grandTotal">grand total </param> /// <param name="discount">discounts with any</param> /// <param name="finalAmount">final amount of product</param> public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount, decimal totalAmount, decimal tax, decimal grandTotal, decimal discount, decimal finalAmount) : this() { FinalAmount = finalAmount; }
public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount, decimal totalAmount, decimal tax, decimal grandTotal) : this() { GrandTotal = grandTotal; }
public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount, decimal totalAmount, decimal tax) : this() { Tax = tax; }