public ActionResult ToDo_Action(decimal code, int type) { var todoBl = new ToDoBL(); List <ToDoInfo> lstToDo = new List <ToDoInfo>(); int currStatus = 0; List <AllCodeInfo> lstStatus = new List <AllCodeInfo>(); try { lstToDo = todoBl.GetByCode(code, type); //var actionToDo = ....(code); //currStatus = actionToDo.Status; //ViewBag.ListStatus = Memory_BL.GetAllCodeByCdType(""); ViewBag.CurrentStatus = currStatus; ViewBag.ListToDo = lstToDo; ViewBag.ToDoType = type; } catch (Exception ex) { NaviCommon.Common.log.Error(ex.ToString()); } return(View("~/Areas/ToDo/Views/ToDo/ToDo_Action.cshtml")); }