Beispiel #1
0
 public ActionResult Edit([Bind(Include = "Id,Name,Description,Status")] Task task)
 {
     if (ModelState.IsValid)
     {
         taskService.EditTask(task);
         return(RedirectToAction("Index"));
     }
     return(View(task));
 }
Beispiel #2
0
 public ActionResult Edit(Task Task, string UsersList, string Version)
 {
     Task.AssigneeId = _userServise.GetUser(UsersList).UserId;
     InoSoft.TeamStudio.Core.Entities.Version Versions = _versionServise.GetVersion(Version);
     if (Versions != null)
     {
         Task.VersionId = Versions.VersionId;
     }
     else
     {
         //create version.....
     }
     if (ModelState.IsValid)
     {
         _tasksServise.EditTask(Task);
         return(RedirectToAction("Index"));
     }
     return(View(Task));
 }
Beispiel #3
0
 public ActionResult EditTask(Task task)
 {
     tasksService.EditTask(task);
     return(RedirectToAction("Details", "Projects", new { id = task.ProjectID }));
 }