public CommissionsDto GetCommissions() { var items = _logic.GetCommissions().Select(x => new CommissionListItem() { Id = x.Id, SellerFullName = x.Seller.LegalPerson != null ? x.Seller.LegalPerson.Name : x.Seller.LastName + " " + x.Seller.FirstName + " " + x.Seller.MiddleName, Date = x.Date, DocumentSellerId = x.Seller.Document.Id, Number = x.Number.ToString(), NumberProxy = x.NumberProxy, TrancportFullName = x.Trancport.Model.Name + ", " + x.Trancport.Make.Name, PtsId = x.Trancport.CopyPts.Id, Parking = x.Parking.ToString(), Commission = x.Commission.ToString() }).OrderByDescending(x => new { x.Date, x.Number }).ToList();; return(new CommissionsDto() { Items = items }); }