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);
        }
Exemple #2
0
 public ActionResult Details()
 {
     return(View(objPaperMaster.GetPapers()));
 }