Example #1
0
        private static void AddGenders()
        {
            var male = new GenderType();
             male.Description = "Male";
             var female = new GenderType();
             female.Description = "Female";

             _genderRepo.Save(male);
             _genderRepo.Save(female);
        }
Example #2
0
 //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;
 }