public static void GrowlNotification(this Controller controller, string message, GrowlType growlType, string title = null, bool sticky = false, bool closeable = true, int duration = 5000) { if (title != null) { controller.TempData["GrowlTitle"] = title; } controller.TempData["GrowlType"] = growlType.ToString().ToLower(); controller.TempData["GrowlMessage"] = message; controller.TempData["GrowlCloseable"] = closeable; controller.TempData["GrowlSticky"] = sticky; controller.TempData["GrowlDuration"] = duration; }
public static void GrowlNotification(this Controller controller, string message, GrowlType growlType, string title = null, bool sticky = false, bool closeable = true, int duration = 5000) { if (title != null) controller.TempData["GrowlTitle"] = title; controller.TempData["GrowlType"] = growlType.ToString().ToLower(); controller.TempData["GrowlMessage"] = message; controller.TempData["GrowlCloseable"] = closeable; controller.TempData["GrowlSticky"] = sticky; controller.TempData["GrowlDuration"] = duration; }