public DetailsModel(TRAILES.Data.AppDbContext context, UserManager <IdentityUser> userManager, SignInManager <IdentityUser> signInManager) { _context = context; _userManager = userManager; _signInManager = signInManager; }
public void PopulateCabinsDropDownList(TRAILES.Data.AppDbContext _context, object selectedCabin = null) { var cabinsQuery = from c in _context.Cabins orderby c.Name select c; CabinNameSL = new SelectList(cabinsQuery.AsNoTracking(), "CabinID", "Name", selectedCabin); }
public DetailsModel(TRAILES.Data.AppDbContext context) { _context = context; }
public EditModel(TRAILES.Data.AppDbContext context) { _context = context; }
public IndexModel(TRAILES.Data.AppDbContext context) { _context = context; }
public CreateModel(TRAILES.Data.AppDbContext context) { _context = context; }