Example #1
0
        public ActionResult AddNewCourse()
        {
            List <CategoryVM> cat = categoryAppService.GetAllCategory().ToList();

            ViewData["cat"] = cat;
            return(View());
        }
Example #2
0
        public void Test_Get_All_Category()
        {
            List <CategoryVM> cat2 = new List <CategoryVM>();

            //Act
            cat2 = cat.GetAllCategory();

            //Assert
            Assert.AreEqual(cat2.Count, 4);
        }
Example #3
0
 public ActionResult Index(int?PageNum)
 {
     return(View(categoryAppService.GetAllCategory().ToPagedList(PageNum ?? 1, 5)));
 }