CleanUp and added migration
This commit is contained in:
@@ -8,7 +8,7 @@ public interface IApplicationDbContext
|
||||
|
||||
DbSet<TodoItem> TodoItems { get; }
|
||||
|
||||
DbSet<FuturCreator> FuturCreator { get; }
|
||||
DbSet<FuturCreator> FuturCreators { get; }
|
||||
|
||||
Task<int> SaveChangesAsync(CancellationToken cancellationToken);
|
||||
}
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using Hutopy.Application.Common.Interfaces;
|
||||
using Hutopy.Domain.Entities;
|
||||
|
||||
namespace Hutopy.Application.TodoItems.Commands.CreateFuturCreator;
|
||||
namespace Hutopy.Application.FuturCreators.Commands.CreateFuturCreator;
|
||||
|
||||
public record CreateFuturCreatorCommand : IRequest<int>
|
||||
{
|
||||
@@ -34,7 +35,7 @@ public class CreateFuturCreatorCommandHandler : IRequestHandler<CreateFuturCreat
|
||||
ReasonToJoin = request.ReasonToJoin,
|
||||
};
|
||||
|
||||
_context.FuturCreator.Add(entity);
|
||||
_context.FuturCreators.Add(entity);
|
||||
|
||||
await _context.SaveChangesAsync(cancellationToken);
|
||||
|
||||
Reference in New Issue
Block a user