internal bool AddToSchedule(string training, string date) { try { int ScheduleID = service.AddToSchedule(training, UserID, date, ""); Schedule.Add(new EntryInSchedule(ScheduleID, training, DateTime.Parse(date), "")); return(true); } catch (Exception) { return(false); } }