public async Task <IActionResult> OnGetAsync() { var user = await _userManager.GetUserAsync(User); Count = new PostCount { TakeExpress = new TakeExpressPostCount { ActivePostCount = _takeExpressService.GetAllActiveMissionByPostUserAsync(user).Result.Count.ToString(), InvalidPostCount = _takeExpressService.GetAllInvalidMissionByPostUserAsync(user).Result.Count.ToString(), DeletedPostCount = _takeExpressService.GetAllDeletedMissionByPostUserAsync(user).Result.Count.ToString() }, Purchase = new PurchasePostCount { ActivePostCount = _purchaseService.GetAllActiveMissionByPostUserAsync(user).Result.Count.ToString(), InvalidPostCount = _purchaseService.GetAllInvalidMissionByPostUserAsync(user).Result.Count.ToString(), DeletedPostCount = _purchaseService.GetAllDeletedMissionByPostUserAsync(user).Result.Count.ToString() }, FleaMarket = new FleaMarketPostCount { ActivePostCount = _fleaMarketService.GetAllActiveMissionByPostUserAsync(user).Result.Count.ToString(), InvalidPostCount = _fleaMarketService.GetAllInvalidMissionByPostUserAsync(user).Result.Count.ToString(), DeletedPostCount = _fleaMarketService.GetAllDeletedMissionByPostUserAsync(user).Result.Count.ToString() }, HirePost = new HirePostCount { ActivePostCount = _hireService.GetAllActiveMissionByPostUserAsync(user).Result.Count.ToString(), InvalidPostCount = _hireService.GetAllInvalidMissionByPostUserAsync(user).Result.Count.ToString(), DeletedPostCount = _hireService.GetAllDeletedMissionByPostUserAsync(user).Result.Count.ToString() }, }; return(Page()); }