public async Task <IActionResult> GetClientProfile(Guid id) { try { var clientProfile = await _clientProfileService.Get(id); if (clientProfile == null) { return(NotFound()); } return(Ok(clientProfile)); } catch (Exception e) { return(StatusCode(500, new JsonResult(new { message = e.Message }))); } }
public async Task <IActionResult> Get(string clientId) { ClientProfileDto profile = await _clientProfileService.Get(clientId); return(Ok(profile)); }