Ejemplo n.º 1
0
 private void PopulateDoctors(MRSSAppContext context)
 {
     Doctors.Add(new KeyValuePair<string, string>("", string.Empty));
     var doctors = context.Doctors.ToList();
     foreach (var doctor in doctors)
     {
         Doctors.Add(new KeyValuePair<string, string>(doctor.UserName, doctor.FirstName + " " + doctor.LastName));
     }
 }
Ejemplo n.º 2
0
 public DoctorsHelper(MRSSAppContext context)
 {
     Doctors = new List<KeyValuePair<string, string>>();
     PopulateDoctors(context);
 }