public GetConsignorPmtsByConsignorIdOutput GetConsignorPmtsByConsignorId(GetConsignorPmtsByConsignorIdInput input)
 {
     return(new GetConsignorPmtsByConsignorIdOutput
     {
         PmtDtos = _consignorPmtRepository.GetConsignorPmtsByConsignorId(input.ConsignorId).Select(i => new ConsignorPmtDto(i)).ToList()
     });
 }
        public IEnumerable <ConsignorPmt> GetConsignorPmtsByConsignorId(int id)
        {
            var input = new GetConsignorPmtsByConsignorIdInput
            {
                ConsignorId = id
            };

            using (var repo = new ConsignorPmtRepository())
            {
                var app = new ConsignorPmtAppService(repo);
                return(app.GetConsignorPmtsByConsignorId(input).PmtDtos.Select(c => c.ConvertToConsignorPmt()).ToList());
            }
        }