Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Printing all Services");
            using (var repo = new ServiceRepo())
            {
                repo.Delete(repo.GetOne(2));

                foreach (Service c in repo.GetAll())
                {
                    Console.WriteLine(c);
                }
            }
            Console.ReadLine();
        }
Example #2
0
 internal IEnumerable <Service> GetServices() => _serviceRepo.GetAll().Where(x => !x.IsRoomRate);