public void deleteAppoinment(int n)
        {
            Appoinment a = e.Appoinments.FirstOrDefault(any => any.appoinmentID == n);

            e.Appoinments.Remove(a);
            e.SaveChanges();
        }
        public bool DocMarkAsDone(int id)
        {
            Appoinment a = e.Appoinments.FirstOrDefault(Appoinment => Appoinment.appoinmentID == id);

            if (a != null)
            {
                a.Done = "Yes";
                e.SaveChanges();
                return(true);
            }
            else
            {
                return(false);
            }
        }
        //Add Appoinment
        public bool AddAppoinment(string docid, string patientid, DateTime d)
        {
            Appoinment a = new Appoinment();

            try {
                a.DoctorUname  = docid;
                a.PatientPhone = patientid;
                a.Date         = d;
                a.Done         = "No";
                e.Appoinments.Add(a);
                e.SaveChanges();
            }catch (Exception e) {
                return(false);
            }



            return(true);
        }