Email Reminders
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user