Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public ActionResult Delegate(int id, int peopleid)
 {
     var tasks = new TaskModel();
     tasks.Delegate(id, peopleid);
     return PartialView("Detail", tasks.FetchTask(id));
 }