コード例 #1
0
        public ActionResult View(int id)
        {
            try
            {
                Subtask S = Subtask.FetchSubtaskByID(id);
                if (S == null)
                {
                    return(null); // Need to throw an Error view
                }

                Current C = new Current();
                C.Subtask  = S;
                C.Employee = (Employee)Session["Employee"];
                InjectEmployeeDetails();
                return(View(C));
            }
            catch (Exception)
            {
                return(null); // Need to throw an Error view
            }
        }