public virtual ActionResult Create(CommentViewModel model) { return Handle(model, CommentService.Save, () => RedirectToAction(MVC.Comments.CommentList(model.TaskId)), new EmptyResult()); }
// GET: /Comment/Create public virtual ActionResult Create(int taskId) { var commentsCreate = new CommentViewModel { TaskId = taskId, EmployeeId = UserEmployeeId ?? 1 }; return PartialView(MVC.Comments.Views._AddCommentForm, commentsCreate); }