public string CountNoti() { var c = new WebLib.DAL.fwNotificationDAL().CountNew(DB.CurrentUser.ID); if (c != 0) return string.Format("<i class='tmn-counts'>{0}</i>", c); return null; }
public ActionResult ListNoti() { new WebLib.DAL.fwNotificationDAL().RemoveCount(DB.CurrentUser.ID); var lst = new WebLib.DAL.fwNotificationDAL().ListByUser(DB.CurrentUser.ID); return PartialView(lst); }