public ActionResult List() { List <Ration> RationList = RationBM.GetAllRation(); ViewData["Rlist"] = RationList; return(View()); }
public ActionResult ById(int id) { Ration goods = RationBM.GetGoodsById(id); ViewData["goods"] = goods; return(View()); }
public ActionResult Delete(int id) { RationBM.DeleteRation(id); return(View()); }
public ActionResult Update(int cost, int qtn, int id) { RationBM.UpdateRation(cost, qtn, id); return(View()); }
public ActionResult Insert(string gname, int cost, int qtn) { RationBM.InsertRation(gname, cost, qtn); return(View()); }