refactoring
This commit is contained in:
parent
f950f93f90
commit
18d1b7fea4
8 changed files with 33 additions and 11 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue