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); }
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); }