refactoring backend structure
This commit is contained in:
parent
dcc59f7b69
commit
0e1c16ab91
36 changed files with 786 additions and 454 deletions
|
@ -1,5 +1,5 @@
|
|||
using MediatR;
|
||||
using Sledgemapper.Api.Data;
|
||||
using Sledgemapper.Api.Infrastructure.Data;
|
||||
using Sledgemapper.Api.Commands;
|
||||
using Sledgemapper.Api.Notifications;
|
||||
using Sledgemapper.Shared.Entities;
|
||||
|
@ -13,11 +13,11 @@ namespace Sledgemapper.Api.Handlers
|
|||
|
||||
public class DeleteWallCommandHandler : IRequestHandler<DeleteWallCommand, bool>
|
||||
{
|
||||
private readonly MyDbContext _dbcontext;
|
||||
private readonly SledgemapperDbContext _dbcontext;
|
||||
|
||||
private readonly IMediator _mediator;
|
||||
|
||||
public DeleteWallCommandHandler(IMediator mediator, MyDbContext dbcontext) { _dbcontext = dbcontext; _mediator = mediator; }
|
||||
public DeleteWallCommandHandler(IMediator mediator, SledgemapperDbContext dbcontext) { _dbcontext = dbcontext; _mediator = mediator; }
|
||||
|
||||
|
||||
public async Task<bool> Handle(DeleteWallCommand notification, CancellationToken cancellationToken)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue