Exemplo 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;
 }
Exemplo n.º 2
0
 public NeedMemberQuery(Band band, Instrument instrument)
 {
     Band = band; Instrument = instrument; QueryStartedOn = DateTime.Now;
 }
Exemplo 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;
 }