// GET: SubService public async Task <ActionResult> Index() { var SubServices = await _SubService.GetAll(); return(View(SubServices)); }
public async Task <IActionResult> GetAll() { var model = await _subService.GetAll(); return(new OkObjectResult(model)); }