コード例 #1
0
 public ActionResult Edit([Bind(Include = "password,Email")] AspNetUserLogin aspNetUserLogin)
 {
     if (ModelState.IsValid)
     {
         db.Entry(aspNetUserLogin).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(aspNetUserLogin));
 }
コード例 #2
0
 public ActionResult Edit([Bind(Include = "clinic_time,hospital_time,is_avalible,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));
 }
コード例 #3
0
ファイル: patientsController.cs プロジェクト: Maham456/book
 public ActionResult Edit([Bind(Include = "name,email,contact_number,password")] patient patient)
 {
     if (ModelState.IsValid)
     {
         db.Entry(patient).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(patient));
 }
コード例 #4
0
ファイル: doctorsController.cs プロジェクト: Maham456/book
 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));
 }