Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 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");
 }
Esempio n. 3
0
 public StockDetails(int productId, NameofProduct productName, NameOfBrand brandName, string avaiablequty) : this()
 {
     AvaiableQuty = avaiablequty;
 }
Esempio n. 4
0
 public StockDetails(int productId, NameofProduct productName, NameOfBrand brandName) : this(productName)
 {
     BrandName = brandName;
 }
Esempio n. 5
0
 public StockDetails(NameofProduct productName) : this()
 {
     ProductName = productName;
 }
Esempio n. 6
0
 public Product(int productId, NameofProduct productName, NameOfBrand brandName, decimal productPrice, int quantity) : this()
 {
     Quantity = quantity;
 }
Esempio n. 7
0
 public Product(NameofProduct productName, NameOfBrand brandName) : this(productName)
 {
     BrandName = brandName;
 }
Esempio n. 8
0
 public Product(NameofProduct productName) : this()
 {
     ProductName = productName;
 }
Esempio n. 9
0
 public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount) : this(quantity)
 {
     Amount = amount;
 }
Esempio n. 10
0
 public Orders(string customerName, NameofProduct productName, decimal price, string quantity) : this()
 {
     Quantity = quantity;
 }
Esempio n. 11
0
 public Orders(string customerName, NameofProduct productName, decimal price) : this()
 {
     Price = price;
 }
Esempio n. 12
0
 public Orders(string customerName, NameofProduct productName) : this()
 {
     ProductName = productName;
 }
Esempio n. 13
0
 /// <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");
 }
Esempio n. 14
0
 /// <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;
 }
Esempio n. 15
0
 public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount, decimal totalAmount, decimal tax, decimal grandTotal) : this()
 {
     GrandTotal = grandTotal;
 }
Esempio n. 16
0
 public Orders(string customerName, NameofProduct productName, decimal price, string quantity, decimal amount, decimal totalAmount, decimal tax) : this()
 {
     Tax = tax;
 }