Esempio n. 1
0
        public ActionResult GetSubmissionForManager()
        {
            var data = DAManager.GetSubmissionsForManager();
            var res  = data.Select(x => new SubmittionModel()
            {
                Sub_ID          = x.Sub_ID,
                Sub_Title       = x.Sub_Title,
                Department_ID   = DAManager.GetDepartmentByUserID(x.USER.User_ID).Dep_ID,
                Department_Name = DAManager.GetDepartmentByUserID(x.USER.User_ID).Dep_Name,
                Description     = x.Sub_Description,
                Created_Date    = x.Created_Date.ToString(),
                IsPublic        = x.IsPublic
            }).ToList();

            return(Json(res, JsonRequestBehavior.AllowGet));
        }