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)); }
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)); }