Esempio n. 1
0
 public static Band SaveNewBandToDB(string name, ApplicationUser founder, ApplicationDbContext context)
 {
     var newBand = new Band {Name = name};
     newBand.Admins.Add(founder);
     newBand.Members.Add(founder);
     newBand.CreatedOn = DateTime.Now;
     context.Bands.Add(newBand);
     context.SaveChanges();
     return newBand;
 }
Esempio n. 2
0
 public NeedMemberQuery(Band band, Instrument instrument)
 {
     Band = band; Instrument = instrument; QueryStartedOn = DateTime.Now;
 }
Esempio n. 3
0
 public NeedMembersQueryResultViewModel(Band band, Instrument instrument, List <ApplicationUser> users)
 {
     Band       = band;
     Instrument = instrument;
     Users      = users;
 }
 public NeedMembersQueryResultViewModel(Band band, Instrument instrument,List<ApplicationUser> users)
 {
     Band = band;
     Instrument = instrument;
     Users = users;
 }