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