public async Task <IActionResult> GetMyPreferencesAsync(Guid userId) { var preferences = new MyPreferencesQuery { UserId = userId }; var queryResult = await _mediator.Send(preferences); return(Ok(queryResult)); }
public async Task <IActionResult> GetMyPreferencesAsync() { var preferences = new MyPreferencesQuery { UserId = _contextAccessor.HttpContext.GetUserOrThrow().Id }; var queryResult = await _mediator.Send(preferences); return(Ok(queryResult)); }