示例#1
0
        // GET: SubService
        public async Task <ActionResult> Index()
        {
            var SubServices = await _SubService.GetAll();

            return(View(SubServices));
        }
示例#2
0
        public async Task <IActionResult> GetAll()
        {
            var model = await _subService.GetAll();

            return(new OkObjectResult(model));
        }