Email Reminders

This commit is contained in:
2015-10-28 10:25:19 -04:00
parent 9177a8dbb3
commit cfe753fb00
13 changed files with 272 additions and 10 deletions
@@ -3,6 +3,7 @@ using System.Linq;
using System.Web.Mvc;
using MileageTraker.Web.Attributes;
using MileageTraker.Web.DAL;
using MileageTraker.Web.Email;
using MileageTraker.Web.Models;
using MileageTraker.Web.Utility;
using MileageTraker.Web.ViewModels;
@@ -213,5 +214,15 @@ namespace MileageTraker.Web.Controllers
var names = DataService.GetServiceCenterNamesAutocomplete(term);
return Json(names, JsonRequestBehavior.AllowGet);
}
[ActionLog]
[Authorize(Roles = "Developer")]
public ActionResult SendVehicleServiceReminderEmails()
{
var emailService = new ServiceReminderEmailService();
emailService.SendAllNotificationEmails();
SetStatusMessage("Vehicle Service Reminders Sent");
return Redirect(Request.UrlReferrer.ToString());
}
}
}