Example #1
0
        public CommissionDto GetCommission(int id)
        {
            var document         = _logic.GetDocument(id);
            var printedDocuments =
                _logic.GetPrintedDocumentTemplates()
                .ToList()
                .Select(x => new KeyValue <string, string>()
            {
                Key   = x.Type,
                Value = x.Name
            });

            return(new CommissionDto()
            {
                Document = document,
                PrintedDocuments = printedDocuments
            });
        }