Slight simplification

This commit is contained in:
SteveSandersonMS
2015-12-15 15:15:16 +00:00
parent 39f7f1649f
commit 269b31469c

View File

@@ -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()