Пример #1
0
 public ActionResult WorklistEdit([Bind(Include = "TaskId, TaskName, Duration")] Task task)
 {
     if (ModelState.IsValid)
     {
         task.UserName         = internUrl;
         _db.Entry(task).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("AdminIndex", new { year = yearUrl, month = monthUrl, internName = internUrl }));
     }
     return(View(task));
 }
Пример #2
0
 public ActionResult Edit([Bind(Include = "SigninId, WorkDate, ArrivedTime, LeaveTime")] Signin signin)
 {
     if (ModelState.IsValid)
     {
         _db.Entry(signin).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(signin));
 }
 public ActionResult Edit([Bind(Include = "TaskId, TaskName, Duration")] Task task)
 {
     if (ModelState.IsValid)
     {
         _db.Entry(task).State = EntityState.Modified;
         _db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(task));
 }