public List <PaperDTO> BindListPaper() { List <PaperDTO> ListPaper = new List <PaperDTO>() { new PaperDTO { PaperId = 0, PaperName = "Select" } }; foreach (var item in objpaper.GetPapers()) { PaperDTO p = new PaperDTO(); p.PaperId = item.PaperId; p.PaperName = item.PaperName; ListPaper.Add(p); } return(ListPaper); }
public ActionResult Details() { return(View(objPaperMaster.GetPapers())); }