Beispiel #1
0
 public ActionResult Standard()
 {
     var model = new TaskListModel
     {
         ActiveSidebarTab = SessionInfo.TaskListActiveTab
     };
     ViewBag.Title = "Tasks";
     return View(model);
 }
Beispiel #2
0
        public ActionResult OpenWorkItemByInstance(Int64 instanceId)
        {
            var model = new TaskListModel();

            try
            {
                var openItem = model.OpenWorkItemByInstance( instanceId);
                // ReSharper disable once Mvc.AreaNotResolved TODO: Investigate why area cannot be resolved.
                return RedirectToAction(openItem.Action, openItem.Controller, new { area = "Activities", openItem.InstanceId, openItem.KeyValue });
            }
            catch (WorkItemAlreadyOpenException ex)
            {
                ShowErrorMessage(ex.Message);
                return RedirectToAction("Standard");
            }
        }