public async Task <IActionResult> GetCurrentIvestor() { var userId = UserId; if (userId == Guid.Empty) { return(NotFound($"User with id {userId} cannot be found.")); } var investor = await _investorService.GetAsync(userId); if (investor == null) { return(NotFound($"Investor realted with user with id {userId} " + "cannot be found.")); } return(Ok(investor)); }