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); }
public ClientRecordModel GetById(long tid) { var result = _unitOfWork.ClientRecordRepository.GetByID(tid); if (result != null) { var resultModel = GsMapperConfig.ClientRecordMapper(result); return(resultModel); } return(null); }
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); }