Fixing dev #62

This commit is contained in:
2019-09-27 06:59:20 +01:00
parent 5c4f61c3c7
commit cb5f042221
25 changed files with 276 additions and 82 deletions

View File

@ -20,6 +20,7 @@ namespace Yavsc.Controllers
private ApplicationDbContext _context;
ILogger _logger;
IStringLocalizer<Yavsc.YavscLocalisation> _localizer;
IStringLocalizer<BugController> _bugLocalizer;
public ProjectController(ApplicationDbContext context,
ILoggerFactory loggerFactory,
@ -69,7 +70,7 @@ namespace Yavsc.Controllers
ViewBag.PaymentIdItems = _context.PayPalPayment.CreateSelectListItems<PayPalPayment>
(p => p.OrderReference, p => $"{p.Executor.UserName} {p.PaypalPayerId} {p.OrderReference}");
ViewBag.Status = typeof(Yavsc.QueryStatus).CreateSelectListItems(null);
ViewBag.Status = _bugLocalizer.CreateSelectListItems(typeof(Yavsc.QueryStatus), Yavsc.QueryStatus.Inserted);
ViewBag.RepositoryItems = _context.GitRepositoryReference.CreateSelectListItems<GitRepositoryReference>(
u => u.Id.ToString(), u => u.ToString());