internal Bug GetBugById(int id)
        {
            Bug exists = _repo.GetBugById(id);

            if (exists == null)
            {
                throw new Exception("Invalid ID");
            }
            return(exists);
        }
Пример #2
0
        internal Bug GetBugById(int id)
        {
            var foundBug = _bugrepo.GetBugById(id);

            if (foundBug == null)
            {
                throw new Exception("Invalid: Bug Cannot Be Found");
            }
            return(foundBug);
        }