public void AddPaymentMethods()
        {
            EventDbContext db   = new EventDbContext();
            var            bank = new PaymentMethod {
                Name = "Pangaülekanne"
            };
            var cash = new PaymentMethod {
                Name = "Sularaha"
            };

            db.PaymentMethods.Add(bank);
            db.PaymentMethods.Add(cash);
            db.SaveChanges();
        }
        public List <PaymentMethod> GetPaymentMethods()
        {
            EventDbContext db = new EventDbContext();

            return(db.PaymentMethods.ToList());
        }
        public List <Person> GetPersons()
        {
            EventDbContext db = new EventDbContext();

            return(db.Persons.ToList());
        }
        public List <Company> GetCompanies()
        {
            EventDbContext db = new EventDbContext();

            return(db.Companies.ToList());
        }
        public List <Event> GetEvents()
        {
            EventDbContext db = new EventDbContext();

            return(db.Events.ToList());
        }