From 269b31469c0c6ec4382be470dd52f565b5e868db Mon Sep 17 00:00:00 2001 From: SteveSandersonMS Date: Tue, 15 Dec 2015 15:15:16 +0000 Subject: [PATCH] Slight simplification --- .../angular/MusicStore/Controllers/HomeController.cs | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/samples/angular/MusicStore/Controllers/HomeController.cs b/samples/angular/MusicStore/Controllers/HomeController.cs index aabaed6..cd15663 100755 --- a/samples/angular/MusicStore/Controllers/HomeController.cs +++ b/samples/angular/MusicStore/Controllers/HomeController.cs @@ -1,8 +1,3 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Threading.Tasks; -using Microsoft.AspNet.Http; using Microsoft.AspNet.Mvc; namespace MusicStore.Controllers @@ -11,12 +6,7 @@ namespace MusicStore.Controllers { public IActionResult Index() { - var url = Request.Path.Value; - if (url.EndsWith(".ico") || url.EndsWith(".map")) { - return new HttpStatusCodeResult(404); - } else { - return View(); - } + return View(); } public IActionResult Error()