diff --git a/data/Repository/SQLGroupRepository.cs b/data/Repository/SQLGroupRepository.cs index b574e39..c7e2fea 100644 --- a/data/Repository/SQLGroupRepository.cs +++ b/data/Repository/SQLGroupRepository.cs @@ -28,7 +28,13 @@ namespace data.Repository public IEnumerable getAllGroup() { - return dbContext.groups.ToList(); + try + { + return dbContext.groups.ToList(); + } + catch (Exception ex) { + return new List(); + } } } }