public async Task <IActionResult> GetUserprofileByUserId(Guid UserId) { try { if (UserId != null) { dynamic userprofile = await _userprofile.GetUserProfileByUserId(UserId); if (userprofile.Success == false) { return(NotFound(userprofile)); } return(Ok(userprofile)); } return(NotFound("Id field cannot be null")); } catch (Exception ex) { throw; } }