示例#1
0
        public ActionResult Edit([Bind(Include = "ID, Firstname, Lastname, Age, City, School, Nationality, Studentnumber, Compensation, Description, Progress, AmountOfhoursToComplete, AmountofbookedHours")] Student student)
        {
            if (ModelState.IsValid)
            {
                db.Entry(student).State = EntityState.Modified;
                db.SaveChanges();
                return(View("index"));
            }

            return(View(student));
        }
示例#2
0
 public ActionResult Edit([Bind(Include = "ID,StageName,Beginperiod,Endperiod,StageDescription,NeededEducation,Vacature")] Stage stage)
 {
     if (ModelState.IsValid)
     {
         db.Entry(stage).State = EntityState.Modified;
         db.SaveChanges();
         return(View("index"));
     }
     return(View("index"));
 }
 public ActionResult Edit([Bind(Include = "Id,Email,Password,Address,City,District,Phone")] Profile profile)
 {
     if (ModelState.IsValid)
     {
         db.Entry(profile).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(profile));
 }
示例#4
0
 public ActionResult Edit([Bind(Include = "Id,Name,ParentId,SortOrder,Type,Status")] Category category)
 {
     if (ModelState.IsValid)
     {
         db.Entry(category).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(category));
 }
 public ActionResult Edit([Bind(Include = "ID,StageTitle,AmountofHours,AmountofStudents,StageDescription,url")] Vacature vacature)
 {
     if (ModelState.IsValid)
     {
         db.Entry(vacature).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("index"));
     }
     return(View(vacature));
 }
 public ActionResult Edit(StandartProjeIsleri standartProjeIsleri)
 {
     if (ModelState.IsValid)
     {
         standartProjeIsleri.StandartProjeIsleriTarih = DateTime.Now;
         db.Entry(standartProjeIsleri).State          = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.RefStandartProjeIsleriYapacakKullaniciId       = new SelectList(db.AspNetUsers, "Id", "UserName", standartProjeIsleri.RefStandartProjeIsleriYapacakKullaniciId);
     ViewBag.RefStandartProjeIsleriKontrolEdecekKullaniciId = new SelectList(db.AspNetUsers, "Id", "UserName", standartProjeIsleri.RefStandartProjeIsleriKontrolEdecekKullaniciId);
     return(View(standartProjeIsleri));
 }
 public ActionResult SendInvitation(int?id, int?type)
 {
     if (type == 1)
     {
         SentInvitation(true, id);
         JobApplication jobApplication = db.JobApplications.Find(id);
         jobApplication.ApplyAnswered   = 1;
         db.Entry(jobApplication).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("index"));
     }
     else
     {
         SentInvitation(false, id);
         JobApplication jobApplication = db.JobApplications.Find(id);
         db.JobApplications.Remove(jobApplication);
         db.SaveChanges();
         return(RedirectToAction("index"));
     }
 }