public StockDetail(NewStock form) { // StockId = form.StockId; InitialQuantity = form.InitialQuantity; RemainingBalance = form.InitialQuantity; ReorderBalance = form.ReorderBalance; GRN_Number = form.GRN_Number; }
public Stock(NewStock form) { ProductId = form.ProductId; UnitePrice = form.UnitePrice; InitialQuantity = form.InitialQuantity; RemainingBalance = form.InitialQuantity; ReorderBalance = form.ReorderBalance; GRN_Number = form.GRN_Number; }