Methods
create(name, year) → {Promise.<Object>}
Create a new season.
Parameters:
| Name | Type | Description |
|---|---|---|
name | string | Name of the season |
year | number | Year of the season |
- Source
Returns:
Created season
- Type:
- Promise.<Object>
getAll() → {Promise.<Array>}
Get all seasons.
- Source
Returns:
Array of season objects
- Type:
- Promise.<Array>