Example #1
0
        public async Task<ActionResult> SentEmails(int rateSystemId)
        {
            var users = this.users
                .GetAllSelectUsers(rateSystemId)
                .Select(x => x.Email).ToList();

            var rateSystem = this.rateSystems.GetById(rateSystemId);

            EmailService email = new EmailService();
            await email.SendAddedParticipantsAsync(users, rateSystem);

            this.AddNotification("Успешно изпратихте имейли на всички учасници!", NotificationType.SUCCESS);

            return this.PartialView(PartialViewConstants.SuccessNotificationPartial);
        }