Esempio n. 1
0
        public ResponseGetLogos GetLogos(RequestGetLogos request = null)
        {
            var response = new ResponseGetLogos(request?.Paging);

            var data = dbManager.GetLogos();

            var result = data.Sorting(request?.Sorting).Pagination(response.Paging).ToList();

            var cData = result.Select(t => new LogoDTO()
            {
                Description = t.Description,
                Id          = t.Id,
                ImageUrl    = t.ImageUrl,
                Name        = t.Name,
                Type        = t.Type.GetDescription(),
                TypeValue   = t.Type
            }).ToList();

            response.Data = cData;

            return(response);
        }
Esempio n. 2
0
 public ResponseGetLogos GetLogos([FromQuery] RequestGetLogos request)
 {
     return(ExecuteWrapper.Execute(() => { return aManager.GetLogos(request); }));
 }