internal Bug GetBugById(int id) { Bug exists = _repo.GetBugById(id); if (exists == null) { throw new Exception("Invalid ID"); } return(exists); }
internal Bug GetBugById(int id) { var foundBug = _bugrepo.GetBugById(id); if (foundBug == null) { throw new Exception("Invalid: Bug Cannot Be Found"); } return(foundBug); }