public RsvpAdminController(Db db)
 {
     _db = db;
 }
 public async Task<IndexViewModel> Fill(Db db)
 {
     Rsvps = await db.Rsvps.OrderBy(x => x.Name).ToListAsync();
     return this;
 }
 public GuestsController(Db db, IMapper mapper)
 {
     _db = db;
     _mapper = mapper;
 }
 public SaveTheDateController(Db db)
 {
     _db = db;
 }
 public async Task<CreateViewModel> Fill(Db db)
 {
     AvailableGroups = await db.Guests.Select(x => x.Group).Where(x => x != null && x != "").Distinct().ToListAsync();
     return this;
 }
Exemple #6
-2
        public async Task<EditViewModel> Fill(IMapper mapper, Db db, Guest guest)
        {
            await base.Fill(db);

            mapper.Map(guest, this);

            return this;
        }