public async Task <IActionResult> SendNotification(int id = 1) { var microkol = await _IAccountBusiness.GetAccount(id); var filter = new AccountWithCategorySpecification(id); var influencer = await _IAccountRepository.GetSingleBySpecAsync(filter); ViewBag.Influencer = influencer; if (microkol == null) { TempData["MessageError"] = "Người ảnh hưởng không tồn tại!"; } return(View(microkol)); }
public async Task <IActionResult> Detail(int id = 0) { var microkol = await _IAccountBusiness.GetAccount(id); if (microkol == null) { TempData["MessageError"] = "Người ảnh hưởng không tồn tại!"; return(RedirectToAction("Detail", "Microkol", new { id = id })); } var filter = new AccountWithCategorySpecification(id); var influencer = await _IAccountRepository.GetSingleBySpecAsync(filter); ViewBag.Influencer = influencer; return(View(microkol)); }