public Repository(MobileDbContext context) { _context = context; _dbSet = _context.Set <TEntity>(); }
// GET: Orders/Create public IActionResult Create() { ViewData["MobileID"] = new SelectList(_context.Mobile, "ID", "ID"); ViewData["UserID"] = new SelectList(_context.Set <User>(), "ID", "ID"); return(View()); }