public ActionResult EditPacient(int ID)
        {
            EditPacientViewModel model = new EditPacientViewModel();

            var pacient = PacientServices.ClassObject.GetPacient(ID);

            model.ID                     = pacient.ID;
            model.IDMedic                = pacient.IDMedic;;
            model.Nume                   = pacient.Nume;
            model.Prenume                = pacient.Prenume;
            model.CNP                    = pacient.CNP;
            model.Sex                    = pacient.Sex;
            model.DataNasterii           = pacient.DataNasterii;
            model.Varsta                 = pacient.Varsta;
            model.Adresa                 = pacient.Adresa;
            model.Localitate             = pacient.Localitate;
            model.Judet                  = pacient.Judet;
            model.Email                  = pacient.Email;
            model.Telefon                = pacient.Telefon;
            model.Ocupatie               = pacient.Ocupatie;
            model.LocDeMunca             = pacient.LocDeMunca;
            model.GrupSanguin            = pacient.GrupSanguin;
            model.RH                     = pacient.RH;
            model.Alergii                = pacient.Alergii;
            model.Inaltime               = pacient.Inaltime;
            model.Greutate               = pacient.Greutate;
            model.TegumenteMucoase       = pacient.TegumenteMucoase;
            model.TesutSubcutanat        = pacient.TesutSubcutanat;
            model.Ganglioni              = pacient.Ganglioni;
            model.AntecedenteFiziologice = pacient.AntecedenteFiziologice;
            model.AntecedentePatologice  = pacient.AntecedentePatologice;
            model.ConditiiMediu          = pacient.ConditiiMediu;
            model.Internari              = pacient.Internari;
            model.MotiveInternari        = pacient.MotiveInternari;
            model.Zgomot                 = pacient.Zgomot;
            model.Suflu                  = pacient.Suflu;
            model.Frecventa              = pacient.Frecventa;
            model.Aritmii                = pacient.Aritmii;
            model.Parola                 = pacient.Parola;
            model.Doctors                = DoctorServices.ClassObject.GetAllTheDoctors();
            return(PartialView(model));
        }
        public ActionResult EditPacient(EditPacientViewModel model)
        {
            var existingPacient = PacientServices.ClassObject.GetPacient(model.ID);

            existingPacient.IDMedic                = model.IDMedic;;
            existingPacient.Nume                   = model.Nume;
            existingPacient.Prenume                = model.Prenume;
            existingPacient.CNP                    = model.CNP;
            existingPacient.Sex                    = model.Sex;
            existingPacient.DataNasterii           = model.DataNasterii;
            existingPacient.Varsta                 = model.Varsta;
            existingPacient.Adresa                 = model.Adresa;
            existingPacient.Localitate             = model.Localitate;
            existingPacient.Judet                  = model.Judet;
            existingPacient.Email                  = model.Email;
            existingPacient.Telefon                = model.Telefon;
            existingPacient.Ocupatie               = model.Ocupatie;
            existingPacient.LocDeMunca             = model.LocDeMunca;
            existingPacient.GrupSanguin            = model.GrupSanguin;
            existingPacient.RH                     = model.RH;
            existingPacient.Alergii                = model.Alergii;
            existingPacient.Inaltime               = model.Inaltime;
            existingPacient.Greutate               = model.Greutate;
            existingPacient.TegumenteMucoase       = model.TegumenteMucoase;
            existingPacient.TesutSubcutanat        = model.TesutSubcutanat;
            existingPacient.Ganglioni              = model.Ganglioni;
            existingPacient.AntecedenteFiziologice = model.AntecedenteFiziologice;
            existingPacient.AntecedentePatologice  = model.AntecedentePatologice;
            existingPacient.ConditiiMediu          = model.ConditiiMediu;
            existingPacient.Internari              = model.Internari;
            existingPacient.MotiveInternari        = model.MotiveInternari;
            existingPacient.Zgomot                 = model.Zgomot;
            existingPacient.Suflu                  = model.Suflu;
            existingPacient.Frecventa              = model.Frecventa;
            existingPacient.Aritmii                = model.Aritmii;
            existingPacient.Parola                 = model.Parola;

            PacientServices.ClassObject.UpdatePacient(existingPacient);

            return(RedirectToAction("PacientsTable"));
        }