public ResponseGetWindowPlastics GetWindowPlastics(RequestGetWindowPlastics request) { var response = new ResponseGetWindowPlastics(request?.Paging); var data = dbManager.GetWindowPlastics(); var result = data.Sorting(request?.Sorting).Pagination(response.Paging).ToList(); var cData = result.Select(t => new WindowPlasticDTO() { Id = t.Id, Feature = t.Feature, ImageUrl = t.ImageUrl, Name = t.Name, Size = t.Size, TotalValue = t.Total, HasSetup = t.HasSetup, Total = $"{string.Format("{0:#.##}", t.Total)} {(t.HasSetup ? "с установкой" : "без установки")}", }).ToList(); response.Data = cData; return(response); }
public ResponseGetWindowPlastics GetWindowPlastics([FromQuery] RequestGetWindowPlastics request) { return(ExecuteWrapper.Execute(() => { return aManager.GetWindowPlastics(request); })); }