예제 #1
0
 public ActionResult Edit([Bind(Include = "Program_Name,Description,Applicant_Eligibility,Duration,Degree_Certificate_Offered,DummyID_PO")] ProgramsOffered programsOffered)
 {
     if (Session["Login_id"] != null)
     {
         if (ModelState.IsValid)
         {
             db.Entry(programsOffered).State = EntityState.Modified;
             db.SaveChanges();
             return(RedirectToAction("Index"));
         }
         return(View(programsOffered));
     }
     else
     {
         return(RedirectToAction("Login", "Users"));
     }
 }
예제 #2
0
 public ActionResult Accept([Bind(Include = "Application_Id, Full_Name, Date_Of_Birth, Highest_Qualification, Marks_Obtained, Goals, Email_Id, Scheduled_Program_Id, Status, Date_Of_Interview")] ApplicationForm applicant)
 {
     if (Session["Login_id"] != null)
     {
         if (ModelState.IsValid)
         {
             db.Entry(applicant).State = EntityState.Modified;
             db.SaveChanges();
             return(RedirectToAction("StatusChange", "MAC"));
         }
         return(View(applicant));
     }
     else
     {
         return(RedirectToAction("Login", "Users"));
     }
 }
 public ActionResult Edit([Bind(Include = "Scheduled_Program_Id,Program_Name,Location,Start_Date,End_Date,Sessions_Per_Week,DummyID")] ProgramsScheduled programsScheduled)
 {
     if (ModelState.IsValid)
     {
         db.Entry(programsScheduled).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(programsScheduled));
 }