public ActionResult Update(int id) { var m = new TaskModel(); var t = m.FetchTask(id); UpdateModel(t); t.UpdateTask(); t = m.FetchTask(id); return(View("Detail", t)); }
public ActionResult ChangeAbout(int id, int peopleid) { TaskModel.SetWhoId(id, peopleid); var tasks = new TaskModel(); return(PartialView("Detail", tasks.FetchTask(id))); }
public ActionResult Delegate(int id, int peopleid) { var tasks = new TaskModel(); tasks.Delegate(id, peopleid); return(PartialView("Detail", tasks.FetchTask(id))); }
public ActionResult ChangeOwner(int id, int peopleid) { var tasks = new TaskModel(); tasks.ChangeOwner(id, peopleid); return(PartialView("Detail", tasks.FetchTask(id))); }
public ActionResult AddSourceContact(int id, int contactid) { var tasks = new TaskModel(); tasks.AddSourceContact(id, contactid); return(PartialView("Detail", tasks.FetchTask(id))); }
public ActionResult Accept(int id) { var tasks = new TaskModel { Id = id.ToString() }; tasks.AcceptTask(id); return(PartialView("Detail", tasks.FetchTask(id))); }
public ActionResult SetComplete(int id) { var tasks = new TaskModel { Id = id.ToString() }; tasks.CompleteTask(id); return(PartialView("Columns", tasks.FetchTask(id))); }
public ActionResult Update(int id) { var m = new TaskModel(); var t = m.FetchTask(id); UpdateModel(t); t.UpdateTask(); return(RedirectToAction("Detail", new { id = id })); }
public ActionResult Detail(int id, int?rowid) { var tasks = new TaskModel(); if (rowid.HasValue) { ViewData.Add("detailid", id); ViewData.Add("rowid", rowid); return(PartialView("Detail2", tasks)); } return(PartialView("Detail", tasks.FetchTask(id))); }
public ActionResult AddTask(string CurTab, string TaskDesc) { var model = new TaskModel { CurTab = CurTab }; var listid = model.CurListId; if (listid == 0) { listid = TaskModel.InBoxId(model.PeopleId); var c = new HttpCookie("tasktab", model.CurTab); c.Expires = Util.Now.AddDays(360); Response.Cookies.Add(c); } var tid = model.AddTask(model.PeopleId, listid, TaskDesc); return(PartialView("Row", model.FetchTask(tid))); }
public ActionResult Row(int id) { var tasks = new TaskModel(); return(PartialView(tasks.FetchTask(id))); }
public ActionResult Edit(int id) { var m = new TaskModel(); return(PartialView(m.FetchTask(id))); }
public ActionResult Detail(int id) { var tasks = new TaskModel(); return(View("Detail", tasks.FetchTask(id))); }