pitit refact
This commit is contained in:
parent
e24208e77b
commit
20713eef64
235 changed files with 5374 additions and 373 deletions
|
|
@ -24,10 +24,10 @@ namespace Yavsc.Helpers
|
|||
}
|
||||
private static List<Notification> SetupNotificationList(this Controller controller)
|
||||
{
|
||||
List<Notification> notifs = (List<Notification>)controller.ViewData["Notify"];
|
||||
List<Notification> notifs = (List<Notification>)controller.ViewBag.Notify;
|
||||
if (notifs == null)
|
||||
{
|
||||
controller.ViewData["Notify"] = notifs = new List<Notification>();
|
||||
controller.ViewBag.Notify = notifs = new List<Notification>();
|
||||
}
|
||||
return notifs;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue