public async Task <IActionResult> Index(Guid id) { var presenter = new MvcGetUserProfilePresenter(); var useCaseResult = await mediator.Send(new GetUserProfile(id, presenter)); if (!useCaseResult.IsSuccessful) { return(useCaseResult.ResultCategory == ResultCategory.NotFound ? NotFound() : StatusCode(500)); } return(View(presenter.GetViewModel())); }
public MvcGetUserProfilePresenterTests() { presenter = new MvcGetUserProfilePresenter(); }