public JsonResult GetTaskStages(long ProjectId) { PM_TaskStagesBL pM_TaskStagesBL = new PM_TaskStagesBL(); var List = pM_TaskStagesBL.ToList("GetByProjectId", ProjectId); return(Json(List)); }
public JsonResult GetTaskOrProjectStages(long ProjectId, long TaskId) { PM_TaskStagesBL pM_TaskStagesBL = new PM_TaskStagesBL(); var List = pM_TaskStagesBL.ToList("GetStagesForTaskOrProject", ProjectId, TaskId); return(Json(List)); }
public JsonResult ToSingle(string Filter, string Value) { PM_ProjectBL pd = new PM_ProjectBL(); PM_GazetteHolidaysBL gh = new PM_GazetteHolidaysBL(); PM_TaskStagesBL pM_TaskStagesBL = new PM_TaskStagesBL(); var rec = pd.ToSingle(Filter, Value); if (Value != "0") { var ghh = gh.ToList("ByProjectId", Value); if (ghh.Count > 0) { rec.GH = ghh; } var obj = pM_TaskStagesBL?.ToList("GetByProjectId", long.Parse(Value)); if (obj.Count > 0) { rec.TS = obj; } } // rec.TS = pM_TaskStagesBL?.ToList("GetByProjectId", long.Parse(Value)); return(Json(rec, JsonRequestBehavior.AllowGet)); }