Drinks: models and boilerplate

This commit is contained in:
2020-03-05 18:17:45 +01:00
parent 9735a0d5a0
commit da67b8eda2
11 changed files with 305 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System.Threading.Tasks;
using EstusShots.Shared.Interfaces;
using EstusShots.Shared.Models;
using EstusShots.Shared.Models.Parameters;
namespace EstusShots.Server.Services
{
public class DrinksService : IDrinksController
{
public Task<ApiResponse<GetDrinksResponse>> GetDrinks(GetDrinksParameter parameter)
{
throw new System.NotImplementedException();
}
public Task<ApiResponse<GetDrinkDetailsResponse>> GetDrinkDetails(GetDrinkDetailsParameter parameter)
{
throw new System.NotImplementedException();
}
public Task<ApiResponse<SaveDrinkResponse>> SaveDrink(SaveDrinkParameter parameter)
{
throw new System.NotImplementedException();
}
}
}

View File

@@ -13,6 +13,7 @@ namespace EstusShots.Server.Services
public DbSet<Season> Seasons { get; set; } = default!;
public DbSet<Episode> Episodes { get; set; } = default!;
public DbSet<Player> Players { get; set; } = default!;
public DbSet<Drink> Drinks { get; set; } = default!;
protected override void OnModelCreating(ModelBuilder modelBuilder)
{