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; } }