Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }