cleaning up controllers (#19)

This commit is contained in:
Steve Smith
2017-07-26 17:43:32 -04:00
committed by GitHub
parent b645cb35c1
commit 11ace4ea35
3 changed files with 21 additions and 66 deletions

View File

@@ -5,8 +5,6 @@ using Microsoft.AspNetCore.Mvc;
using System;
using System.Threading.Tasks;
using ApplicationCore.Interfaces;
using ApplicationCore.Exceptions;
using Microsoft.Extensions.Logging;
namespace Microsoft.eShopWeb.Controllers
{
@@ -56,23 +54,6 @@ namespace Microsoft.eShopWeb.Controllers
return View(vm);
}
//[HttpGet("[controller]/pic/{id}")]
//public IActionResult GetImage(int id)
//{
// byte[] imageBytes;
// try
// {
// imageBytes = _imageService.GetImageBytesById(id);
// }
// catch (CatalogImageMissingException ex)
// {
// _logger.LogWarning($"No image found for id: {id}");
// return NotFound();
// }
// return File(imageBytes, "image/png");
//}
public IActionResult Error()
{
return View();