Example #1
0
        public JsonResult RequisitionList()
        {
            eTracLoginModel ObjLoginModel = null;
            var             details       = new List <UserModelList>();

            if (Session["eTrac"] != null)
            {
                ObjLoginModel = (eTracLoginModel)(Session["eTrac"]);
            }
            var data = _IePeopleManager.GetRequisitionlist();

            if (data.Count() > 0)
            {
                //foreach (var item in data)
                //{
                //    item.ProfileImage = item.ProfileImage == null ? HostingPrefix + ConstantImages.Replace("~", "") + "no-profile-pic.jpg" : HostingPrefix + ProfilePicPath.Replace("~", "") + item.ProfileImage;
                //    details.Add(item);
                //}
                return(Json(data, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(data, JsonRequestBehavior.AllowGet));
            }
        }