public ResponseDTO GetVLCWalletDetailsByVLCId(int vlcId) { ResponseDTO responseDTO = new ResponseDTO(); var vLCWallet = unitOfWork.VLCWalletRepository.GetByVLCId(vlcId); if (vLCWallet != null) { VLCConvertor.ConvertToVLCWalletDTO(vLCWallet); responseDTO.Status = true; responseDTO.Message = "Customer Collection Summary Report"; return(responseDTO); } else { throw new PlatformModuleException("VLC Wallet Not found for given VLC Id"); } }
public ResponseDTO VLCWalletSummary() { ResponseDTO responseDTO = new ResponseDTO(); List <VLCWalletDTO> vLCWalletDTOList = new List <VLCWalletDTO>(); var vLCWallets = unitOfWork.VLCWalletRepository.GetAll(); if (vLCWallets != null) { foreach (var vlcWallet in vLCWallets) { vLCWalletDTOList.Add(VLCConvertor.ConvertToVLCWalletDTO(vlcWallet)); } responseDTO.Data = vLCWalletDTOList; responseDTO.Status = true; responseDTO.Message = "VLC Wallet Summary Report"; return(responseDTO); } else { throw new PlatformModuleException("No VLC Wallet Not Found"); } }