public async Task <IActionResult> Get_Followers() { BaseResult <ResponseFollowers> baseResult = new BaseResult <ResponseFollowers>(); User user = _SUser.Get_By_Id(GetUserId()); baseResult.data.followers = await _SGithub.Get_Github_Followers(user, _SRedisService); return(new JsonResult(baseResult)); }
public async Task <IActionResult> Get_User() { BaseResult <ResponseGetUser> baseResult = new BaseResult <ResponseGetUser>(); User user = _SUser.Get_By_Id(GetUserId()); baseResult.data.user = await _SGithub.Get_Github_User(user, _SRedisService); baseResult.data.followers = await _SGithub.Get_Github_Followers(user, _SRedisService); baseResult.data.followings = await _SGithub.Get_Github_Following(user, _SRedisService); baseResult.data.starredRepositories = await _SGithub.Get_Github_Starred_Repository(user, _SRedisService); baseResult.data.repositories = await _SGithub.Get_Github_Repository(user, _SRedisService); return(new JsonResult(baseResult)); }