Example #1
0
        public IList <Product> GetProducts(GetProductsArgs args)
        {
            if (args == null)
            {
                throw new ArgumentNullException(nameof(args));
            }
            var list = _repository.GetProducts().OrderBy(x => x.Name).ToList();

            return(list);
        }