public async Task <ActionResponse <List <StudentGroupDto> > > GetAll() { return(await studentGroupService.GetAll()); }
// GET: StudentGroups public ActionResult Index() { var userID = User.Identity.GetUserId(); return(View(_studentGroupService.GetAll().Where(x => x.Owner == userID).ToList())); }
public async Task <ActionResult <ResponseObject <List <StudentGroupModel> > > > Index() { return(await _studentGroupService.GetAll()); }