예제 #1
0
        public ClientRecordModel GetByMobilePassword(string mobileno, string usrpassword)
        {
            var result = _unitOfWork.ClientRecordRepository.Get(m => (m.contactmobile == mobileno && m.upassword == usrpassword + salt));

            if (result != null)
            {
                var resultModel = GsMapperConfig.ClientRecordMapper(result);
                return(resultModel);
            }
            return(null);
        }
예제 #2
0
        public ClientRecordModel GetById(long tid)
        {
            var result = _unitOfWork.ClientRecordRepository.GetByID(tid);

            if (result != null)
            {
                var resultModel = GsMapperConfig.ClientRecordMapper(result);
                return(resultModel);
            }
            return(null);
        }
예제 #3
0
        public ClientRecordModel GetByMobile(string mobileno)
        {
            var result = _unitOfWork.ClientRecordRepository.Get(m => m.contactmobile == mobileno);

            if (result != null)
            {
                var resultModel = GsMapperConfig.ClientRecordMapper(result);
                return(resultModel);
            }
            return(null);
        }