public GuardDataStore() { Guards = new List <Guard>(); //var mockGuards = new List<Guard> //{ // new Guard { PersonalCode = Guid.NewGuid().ToString(), Name = "FirstG"}, // new Guard { PersonalCode = Guid.NewGuid().ToString(), Name = "SecondG"}, // new Guard { PersonalCode = Guid.NewGuid().ToString(), Name = "ThirdG"}, //}; //foreach (var Guard in mockGuards) //{ // Guards.Add(Guard); //} GuardRepository guardRepository = new GuardRepository(); Guards = guardRepository.GetAll(); }