private static void AddGenders() { var male = new GenderType(); male.Description = "Male"; var female = new GenderType(); female.Description = "Female"; _genderRepo.Save(male); _genderRepo.Save(female); }
//public IEnumerable<Ticket> Tickets //{ // get // { // return Context.Tickets.Where(i => i.AssignedToUserId == this.Id); // } //} public User(string name, GenderType gender) { this.Name = name; this.Gender = gender; this.RegistrationDate = DateTime.Now; }