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()); }
public void GetAllTest() { var result = categroyAppService.GetAllCategroy().Count(); Assert.That(result, Is.EqualTo(2)); }