public void FillItem() { var repo = new WorkShopGRNRepository(); var list = repo.FillItem(); ViewBag.itemlist = new SelectList(list, "Id", "Name"); }
public void FillSupplier() { WorkShopGRNRepository repo = new WorkShopGRNRepository(); var result = repo.GetSupplierList(); ViewBag.SupplierList = new SelectList(result, "SupplierId", "SupplierName"); }
public JsonResult GetPartNo(int ItemId) { string str = new WorkShopGRNRepository().GetPartNo(ItemId); return(Json(str, JsonRequestBehavior.AllowGet)); }