Example #1
0
        public ActionResult GetUserTreeViewListTesting(string Id, long?LocationId, List <UserListViewEmployeeManagementModel> model)
        {
            eTracLoginModel ObjLoginModel = null;
            var             details       = new List <UserListViewEmployeeManagementModel>();

            if (Session["eTrac"] != null)
            {
                ObjLoginModel = (eTracLoginModel)(Session["eTrac"]);
                if (LocationId == 0)
                {
                    LocationId = Convert.ToInt32(ObjLoginModel.LocationID);
                }
            }
            var  id      = Cryptography.GetDecryptedData(Id, true);
            long _UserId = 0;

            long.TryParse(id, out _UserId);
            var data = _IePeopleManager.GetUserTreeViewListTesting(_UserId);

            if (data.Count() > 0)
            {
                return(Json(data, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(data, JsonRequestBehavior.AllowGet));
            }
        }