public NotificationInfoViewModel() { if (IsInDesignMode) { } else { int id = notificationBLL.GetNewId(); notificationModel = new Notification { Nid = id, Ntime = DateTime.Now.ToString() }; } }