// GET: PurchaseOrder public ActionResult Index() { List <PurchaseOrderViewModel> model = PurchaseOrderDAL.GetData(); ViewBag.ListStatus = new SelectList(PurchaseOrderDAL.GetStatus(), "ID", "StatusName"); return(View(model)); }