public object GetInfoWithFilters(string category, long minSize, long maxSize) { try { return(_materialsService.GetInfoWithFilters(new FiltersDto { category = category, minSize = minSize, maxSize = maxSize })); } catch (Exception e) { return(BadRequest(e.Message)); } }