Esempio n. 1
0
 public ActionResult Edit([Bind(Include = "Hospital_start_time,hospital_end_time,patient_name,Hospital_day,id,doctor_id")] Hospital_request hospital_request)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hospital_request).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(hospital_request));
 }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "doctor_id,name,date_of_birth,adress,phone,MBBS_Code,email,password,confirm_password,clinic_name,hospital_address,hospital_name,clinic_address,city,specialization,practising_years")] doctor doctor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(doctor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(doctor));
 }
Esempio n. 3
0
 public ActionResult Edit([Bind(Include = "clinic_start_time,hospital_start_time,clinic_end_time,hospital_end_time,Clinic_day,hospial_day,doctor_id")] doctor_scedule doctor_scedule)
 {
     if (ModelState.IsValid)
     {
         db.Entry(doctor_scedule).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(doctor_scedule));
 }
Esempio n. 4
0
 public ActionResult Edit([Bind(Include = "name,email,contact_number,password,Confirm_password")] patient patient)
 {
     if (ModelState.IsValid)
     {
         db.Entry(patient).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(patient));
 }
Esempio n. 5
0
 public ActionResult Edit([Bind(Include = "clinic_start_time,clinic_end_time,patient_name,id,clinic_day,doctor_id")] Clinic_request clinic_request)
 {
     if (ModelState.IsValid)
     {
         db.Entry(clinic_request).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(clinic_request));
 }
Esempio n. 6
0
 public ActionResult Edit([Bind(Include = "email,password")] admin admin)
 {
     if (ModelState.IsValid)
     {
         db.Entry(admin).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(admin));
 }