Finish LoadingSpinner
This commit is contained in:
@@ -11,7 +11,6 @@ using System.Threading.Tasks;
|
||||
namespace Apollon.EntityFramework.Commands
|
||||
{
|
||||
public class CreateTournamentCommand : ICreateTournamentCommand
|
||||
|
||||
{
|
||||
private readonly TournamentsDbContextFactory _contextFactory;
|
||||
|
||||
@@ -23,7 +22,7 @@ namespace Apollon.EntityFramework.Commands
|
||||
public async Task Execute(Tournament tournament)
|
||||
{
|
||||
using (TournamentsDbContext context = _contextFactory.Create())
|
||||
{
|
||||
{
|
||||
TournamentDto tournamentDto = new TournamentDto()
|
||||
{
|
||||
Id = tournament.Id,
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace Apollon.EntityFramework.Commands
|
||||
public async Task Execute(Tournament tournament)
|
||||
{
|
||||
using (TournamentsDbContext context = _contextFactory.Create())
|
||||
{
|
||||
{
|
||||
TournamentDto tournamentDto = new TournamentDto()
|
||||
{
|
||||
Id = tournament.Id,
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace Apollon.EntityFramework
|
||||
public TournamentsDbContext(DbContextOptions options) : base(options)
|
||||
{
|
||||
}
|
||||
|
||||
public DbSet<TournamentDto> Tournaments { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user