public Result <PayInfoDto> GetPayInfo(GetPayInfoDto payInfoDto) { var personId = payInfoDto.IdPerson; //todo: set the static constanct string creditChannel = string.IsNullOrWhiteSpace(payInfoDto.Channel) ? "Constant" : payInfoDto.Channel.ToUpper(); var autoCheckoffQuery = _checkoffAutoAcpRepository.GetAll().Where(a => a.IdPerson == personId && (a.PayStatus == "u" || (a.PayStatus == "k" && a.CommandType == 3))); var isWithholding = _checkoffCommandRepository.GetAll().Any(a => a.ProType == "c") || autoCheckoffQuery.Any(a => a.ProType == "c"); //todo: return the correct result var dto = new PayInfoDto(); return(Result.FromData(dto)); }
public void GetSpecifyData() { //var count = _checkoffAutoAcpRepository.GetAll().Count(); //count.ShouldNotBeNull(); //var total = _checkoffAutoAcpRepository.GetAll().Count(m => DbFunctions.DiffDays(m.CreationTime, DateTime.Today) == 0); var data = _checkoffAutoAcpRepository.GetAll().Where(m => m.Batno == "M79_SINGLEACP_18921754"); data.ShouldNotBeNull(); }