public async Task <Authorization> Authenticate(AuthenticateUserInputModel authenticateUserInputModel) { return(await _mediatorService.SendCommand(_mapper.Map <AuthenticateUserCommand>(authenticateUserInputModel))); }
public async Task<Unit> Create(CreateTaskInputModel createTaskInputModel) { return await _mediatorService.SendCommand( _mapper.Map<CreateTaskCommand>(createTaskInputModel)); }