public ActionResult <WebScrappedData> Webscrape(string path) { try { WebScrappedData result = WebScrapperService.WebScrappe(path); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception) { throw; } }
public ActionResult <WebScrappedData> Webscrape(string gln, string path, string gtin, string internalCode, string description) { try { WebScrappedData result = WebScrapperService.WebScrappe(gln, path, gtin, internalCode, description); if (result == null) { return(NotFound()); } return(Ok(result)); } catch (Exception) { throw; //return StatusCode(StatusCodes.Status500InternalServerError); } }