public ApiResult GetUserTimeline() { try { var userId = User.Claims.First(c => c.Type == ClaimTypes.Name).Value.ToString(); var tweets = _timelineService.GetUserTimeline(userId); return(ApiResult.Success(tweets)); } catch (System.Exception) { return(ApiResult.BadRequest("Something went wrong")); } }