refactoring

This commit is contained in:
Paul Schneider 2018-12-27 23:53:27 +00:00
commit 18d1b7fea4
8 changed files with 33 additions and 11 deletions

View file

@ -3,6 +3,9 @@ using Microsoft.AspNet.Mvc;
using Microsoft.Data.Entity;
using Yavsc.Models;
using Yavsc.Models.IT.Fixing;
using Yavsc.Models.IT.Evolution;
using System.Linq;
using Yavsc.Server.Helpers;
namespace Yavsc.Controllers
{
@ -41,6 +44,7 @@ namespace Yavsc.Controllers
// GET: Bug/Create
public IActionResult Create()
{
ViewBag.FeaturesIds = _context.Feature.CreateSelectListItems<Feature>(f=>f.Id.ToString(),f=>f.ShortName,null).AddNull("none");
return View();
}

View file

@ -8,7 +8,7 @@ using Microsoft.Data.Entity;
namespace Yavsc.Controllers
{
using Models;
using Models.IT.Maintaining;
using Models.IT.Evolution;
public class FeatureController : Controller
{
private ApplicationDbContext _context;