示例#1
0
        public StoreResult QueryPerson(string userID)
        {
            IEnumerable <HrEmploy> item = new HrEmployeeDal().LoadEntity(H => H.UserID == userID);

            if (item != null && item.Count() > 0)
            {
                StoreResult result = new StoreResult();
                result.root  = item.First().ToAjaxResult();
                result.total = item.Count();
                return(result);
            }
            return(null);
        }
示例#2
0
        public StoreResult QueryPersons(StoreParams storeParams)
        {
            IEnumerable <HrEmploy> item = new HrEmployeeDal().LoadEntity(H => H.UserID == storeParams.query);

            if (item != null && item.Count() == 1)
            {
                StoreResult result = new StoreResult();
                result.root  = item.First().ToAjaxResult();
                result.total = item.Count();
                return(result);
            }
            return(null);
        }