public IEnumerable <Supplier> GetAll() { using (var command = context.CreateCommand()) { command.CommandType = CommandType.StoredProcedure; command.CommandText = getAllSuppliers; return(ToList(command).ToList()); } }
public IEnumerable <ProductCategory> GetAll() { using (var command = context.CreateCommand()) { command.CommandType = CommandType.StoredProcedure; command.CommandText = getAllProductCategories; return(ToList(command).ToList()); } }