Пример #1
0
 public ActionResult UpdateSubTask(UpdateSubTaskVM taskVM, Guid userid)
 {
     if (ModelState.IsValid)
     {
         taskService.UpdateSubTask(taskVM.SubTask);
         return(RedirectToAction("Index", new { id = taskVM.TaskID, userid = userid }));
     }
     return(View(taskVM));
 }
Пример #2
0
        public ActionResult UpdateSubTask(Guid id, Guid taskid, Guid userid)
        {
            UpdateSubTaskVM taskVM = new UpdateSubTaskVM();

            taskVM.SubTask = taskService.GetSubTaskByID(id);
            taskVM.TaskID  = taskid;
            taskVM.UserID  = userid;
            return(View(taskVM));
        }