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