Exemplo n.º 1
0
        public ActionResult Index()
        {
            List <CategroyViewModel> categories = categroyAppServices.GetAllCategroy();

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

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