Beispiel #1
0
        public ActionResult Index()
        {
            List <CategroyViewModel> categories = categroyAppServices.GetAllCategroy();

            return(View(categories));
        }
 // GET: Category
 public ActionResult Index()
 {
     return(View(categroyAppService.GetAllCategroy()));
 }
 public ActionResult Create()
 {
     ViewBag.Categroies = categroyAppService.GetAllCategroy();
     return(View());
 }
Beispiel #4
0
        public void GetAllTest()
        {
            var result = categroyAppService.GetAllCategroy().Count();

            Assert.That(result, Is.EqualTo(2));
        }