public string AddNotification(string refCode, string refType, string username, string description) { var notifCode = GenerateCode(); var notif = new Notification() { NotificationCode = notifCode, RefCode = refCode, RefType = refType, Username = username, Description = description, IsViewed = false, NotifTime = DateTime.Now }; dao.Add(notif); return(notifCode); }