コード例 #1
0
 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;
     }
 }
コード例 #2
0
 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;
     }
 }