public async Task <IActionResult> Get(int?page, int?pageSize) { try { var urls = await _urlService.GetAll(page, pageSize); return(Ok(urls)); } catch (Exception ex) { _logger.LogError(ex, "Error in Get", new Object[] { page, pageSize }); throw; } }
public IActionResult Index() { var allUrls = urlService.GetAll(); return(View(allUrls)); }
public ActionResult <IEnumerable <UrlResult> > Index() { return(urlService.GetAll()); }