public GetConsignorPmtByIdOutput GetConsignorPmtById(GetConsignorPmtByIdInput input)
 {
     return(new GetConsignorPmtByIdOutput
     {
         PmtDto = new ConsignorPmtDto(_consignorPmtRepository.GetConsignorPmtById(input.Id))
     });
 }
        public ConsignorPmt GetConsignorPmtById(int id)
        {
            var input = new GetConsignorPmtByIdInput
            {
                Id = id
            };

            using (var repo = new ConsignorPmtRepository())
            {
                var app = new ConsignorPmtAppService(repo);
                return(app.GetConsignorPmtById(input).PmtDto.ConvertToConsignorPmt());
            }
        }