Beispiel #1
0
        public IActionResult Index()
        {
            ViewBag.Station  = _IStaion.GetAllForRoutes();
            ViewBag.Category = _ICate.GetAllCategory();


            return(View());
        }
 public Task <List <Category> > Handle(GetAllCategoryQuery request, CancellationToken cancellationToken)
 {
     return(Task.Run(() => { return _categoryRepo.GetAllCategory(); }));
 }
Beispiel #3
0
 public IActionResult Index()
 {
     ViewBag.listCate = _CateRepo.GetAllCategory();
     return(View());
 }