Ejemplo n.º 1
0
 public ActionResult Edit([Bind(Include = "ID,LoginID,Name,EmailID,PhoneNumber")] FIG_Coor fIG_Coor)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fIG_Coor).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.LoginID = new SelectList(db.Login, "ID", "Username", fIG_Coor.LoginID);
     return(View(fIG_Coor));
 }
Ejemplo n.º 2
0
 public ActionResult Edit([Bind(Include = "ID,Name,EmailID,RegNumber,BranchID,ParentMobilenNumber,LetterAlloted,HasApplied,IsPaid,Amount,OrganiID,FigID,LoginID")] Student student)
 {
     if (ModelState.IsValid)
     {
         db.Entry(student).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.BranchID = new SelectList(db.Branch, "ID", "Name", student.BranchID);
     ViewBag.FigID    = new SelectList(db.FIG, "ID", "Name", student.FigID);
     ViewBag.LoginID  = new SelectList(db.Login, "ID", "Username", student.LoginID);
     ViewBag.OrganiID = new SelectList(db.Organization, "ID", "Name", student.OrganiID);
     return(RedirectToAction("Create", "Organizations"));;
 }
Ejemplo n.º 3
0
 public ActionResult Edit([Bind(Include = "ID,Name,Location,Adress,ContactNumber")] Organization organization)
 {
     if (ModelState.IsValid)
     {
         db.Entry(organization).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(organization));
 }
Ejemplo n.º 4
0
 public ActionResult Edit([Bind(Include = "ID,Username,Password")] Login login)
 {
     if (ModelState.IsValid)
     {
         db.Entry(login).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(login));
 }
Ejemplo n.º 5
0
 public ActionResult Edit([Bind(Include = "ID,Name,FigCorrID")] Branch branch)
 {
     if (ModelState.IsValid)
     {
         db.Entry(branch).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.FigCorrID = new SelectList(db.FIG_Coor, "ID", "Name", branch.FigCorrID);
     return(View(branch));
 }
Ejemplo n.º 6
0
 public ActionResult Edit([Bind(Include = "ID,Name,EmailID,BranchID,internsNbr,LetterAlloted,Applied,Stipened,NoFeesNoStippend,StudentPaid,Confirmed,LoginID")] FIG fIG)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fIG).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.BranchID = new SelectList(db.Branch, "ID", "Name", fIG.BranchID);
     ViewBag.LoginID  = new SelectList(db.Login, "ID", "Username", fIG.LoginID);
     return(View(fIG));
 }