public ActionResult DelegateAll(int id, string items) { var tasks = new TaskModel(); var a = items.SplitStr(",").Select(i => i.ToInt()); foreach (var tid in a) { var t = tasks.Delegate(tid, id); if (t != null) t.ForceCompleteWContact = true; } DbUtil.Db.SubmitChanges(); return PartialView("Rows", tasks); }
public ActionResult Delegate(int id, int peopleid) { var tasks = new TaskModel(); tasks.Delegate(id, peopleid); return PartialView("Detail", tasks.FetchTask(id)); }