// GET: Instituicoes public async Task <IActionResult> Index(string filter, int page = 1, string sortExpression = "Nome") { var list = _context.List(filter); var model = PagingList.Create(list, 5, page, sortExpression, "Nome"); model.RouteValue = new RouteValueDictionary { { "filter", filter } }; return(View(model)); }
public async Task <ActionResult <IEnumerable <Instituicao> > > GetInstituicoes() { return(await _context.List()); }