public async Task <IActionResult> FeedbackContent(int campaignid, List <int> ids, int type, string returnurl = "") { try { var campaign = await _campaignService.GetCampaign(campaignid); if (campaign != null) { DateTime now = DateTime.Now; if (campaign.ExecutionStart.Value <= now) { this.AddAlert(true, "Chiến dịch đã đến giờ thực hiện, nên bạn không thể tiếp tục duyệt nội dung"); return(RedirectToAction("Details", new { id = campaignid })); } } } catch { } foreach (var item in ids) { await _campaignAccountContentService.UpdateStatus(item, type == 1?CampaignAccountContentStatus.DaDuyet : CampaignAccountContentStatus.KhongDuyet, CurrentUser.Name); } this.AddAlert(true); if (type == 1) { return(RedirectToAction("Details", new { id = campaignid })); } if (!string.IsNullOrEmpty(returnurl)) { return(Redirect(returnurl)); } return(RedirectToAction("Content", new { campaignid })); }