Beispiel #1
0
        public Epic GetEpicByTitle(string name)
        {
            Epic epic;

            try
            {
                epic = Epics.FirstOrDefault(e => e.Title == name);
            }
            catch (InvalidOperationException)
            {
                return(null);
            }

            return(epic);
        }
Beispiel #2
0
        public Epic GetEpicById(int id)
        {
            Epic epic;

            try
            {
                epic = Epics.FirstOrDefault(e => e.ID == id);
            }
            catch (InvalidOperationException)
            {
                return(null);
            }

            return(epic);
        }