public Practice DeletePractice(Practice practice)
        {
            var foundPractice = db.Practices.FirstOrDefault(i => i.Id == practice.Id);

            db.Practices.Remove(foundPractice);
            db.SaveChanges();
            return(foundPractice);
        }
        public Practice UpdatePractice(Practice practice)
        {
            var foundPractice = db.Practices.FirstOrDefault(i => i.Id == practice.Id);

            foundPractice.Date = practice.Date;
            db.Practices.Update(foundPractice);
            db.SaveChanges();
            return(foundPractice);
        }
 public Practice CreatePractice(Practice practice)
 {
     db.Practices.Add(practice);
     db.SaveChanges();
     return(practice);
 }