public IActionResult GetUrl() { Host = _httpContextAccessor.HttpContext.Request.GetDisplayUrl(); DataWays dataWays = new DataWays(_configuration); var table = dataWays.Select("select * from Url"); return(Ok(_dataInterface.GetAll(Host, table))); }
public IActionResult GetUrl(int pageid) { Host = _httpContextAccessor.HttpContext.Request.GetDisplayUrl(); DataWays dataWays = new DataWays(_configuration); var table = dataWays.Select("select * from Url"); var data = _dataInterface.GetPageSize(Host, table, pageid); if (data.urlEntities.Count == 0) { return(NotFound()); } return(Ok(_dataInterface.GetPageSize(Host, table, pageid))); }