public Notification GetByNotificationId(int id)
 {
     if (id == 0)
         throw new NullReferenceException("No Notification Found With id" + id);
     Notification note = new Notification();
     try
     {
         note = NotificationRepo.GetAll().FirstOrDefault(x => x.NotificationId ==id);
     }
     catch (Exception)
     {
         throw new NoNotificationFoundException("No Notification Found");
     }
     return note;
 }
        public bool Update(Notification notification)
        {
            bool IsUpdated = false;

            //Schedule sch = GetScheduleByID(schedule.ScheduleId);
            if (notification == null)
                throw new NoNotificationFoundException("Cannot find the notification");
            try
            {

                NotificationRepo.Update(notification);
                IsUpdated = true;
            }
            catch (Exception)
            {
                throw new NotificationNotUpdatedException("notification not updated");
            }
            return IsUpdated;
        }