Exemple #1
0
        public async Task <IActionResult> FeedbackCampaignAccountRefContent(int campaignid, int accountid, int type, string refContent)
        {
            if (ModelState.IsValid)
            {
                var r = await _campaignService.FeedbackCampaignAccountRefContent(CurrentUser.Id, campaignid, accountid, CurrentUser.Username, type, refContent);

                if (r > 0)
                {
                    this.AddAlertSuccess((type == 1) ? $"Bạn đã xác nhận thành công nội dung Caption." : type == 2 ? "Bạn đã cập nhật nội dung caption thành công"
                        : "Bạn đã yêu cầu sửa lại nội dung caption thành công");
                }
                else
                {
                    this.AddAlertDanger("Thông tin chiến dịch không đúng");
                }
            }
            else
            {
                this.AddAlertDanger("Thông tin chiến dịch không đúng");
            }

            return(RedirectToAction("Details", new { id = campaignid }));
        }