Class DeleteNavigationMenuItem.Handler
- Namespace
- Raytha.Application.NavigationMenuItems.Commands
- Assembly
- Raytha.Application.dll
public class DeleteNavigationMenuItem.Handler : IRequestHandler<DeleteNavigationMenuItem.Command, CommandResponseDto<ShortGuid>>
- Inheritance
-
DeleteNavigationMenuItem.Handler
- Implements
- Inherited Members
Constructors
Handler(IRaythaDbContext, IMediator)
public Handler(IRaythaDbContext db, IMediator mediator)
Parameters
db
IRaythaDbContextmediator
IMediator
Methods
Handle(Command, CancellationToken)
Handles a request
public Task<CommandResponseDto<ShortGuid>> Handle(DeleteNavigationMenuItem.Command request, CancellationToken cancellationToken)
Parameters
request
DeleteNavigationMenuItem.CommandThe request
cancellationToken
CancellationTokenCancellation token
Returns
- Task<CommandResponseDto<ShortGuid>>
Response from the request