public IActionResult Index() { try { var html = UseCaseController.GetHtmlAsync("\\SPA\\index.html").Result; return(new ContentResult() { Content = html, ContentType = "text/html", }); } catch (Exception e) { return(HandleException(e)); } }
public IActionResult GetCssFile(string path) { try { path = $"\\Assets\\css\\{path}"; var file = UseCaseController.GetStaticFileAsync(path).Result; return(new ContentResult() { Content = file, ContentType = "text/css" }); } catch (Exception e) { throw e; } }
public IActionResult GetJsFile(string path) { try { path = $"\\Assets\\js\\{path}"; var file = UseCaseController.GetStaticFileAsync(path).Result; return(new ContentResult() { Content = file, ContentType = "application/javascript" }); } catch (Exception e) { throw; } }