public ActionResult EditStock(Stocks fc) { if (ModelState.IsValid) { po.UpdateStocksIn(fc.Id, fc.get_price, fc.sell_price, fc.stockin, fc.current_stock); ModelState.Clear(); } return(RedirectToAction("Index")); }
public ActionResult EditStock(Stocks fc) { if (ModelState.IsValid) { po.UpdateStocksIn(fc.Id, fc.get_price, fc.sell_price, fc.stockin, fc.current_stock); ModelState.Clear(); } return(RedirectToAction("Index")); }