diff --git a/Data/Repository/GroupRepositoryImpl.cs b/Data/Repository/GroupRepositoryImpl.cs index 420d951..04bc99d 100644 --- a/Data/Repository/GroupRepositoryImpl.cs +++ b/Data/Repository/GroupRepositoryImpl.cs @@ -1,4 +1,3 @@ - using System; using System.Collections.Generic; using System.Linq; @@ -38,14 +37,21 @@ namespace Posechaemost.Data.Repository return groupLocal; } - public bool RemoveGroupById(int groupID) - { + public bool RemoveGroupById(int groupID){ GroupLocalEntity? groupLocal = GetAllGroups() .Where(x => x.Id == groupID).FirstOrDefault(); if (groupLocal == null) return false; return GetAllGroups().Remove(groupLocal); } + // public GroupLocalEntity? AddGroup(String name, String id) //не работает + // { + // GroupLocalEntity? groupLocal = GetAllGroups() + // .Where(x => x.Id == groupID).FirstOrDefault(); + // if (groupLocal == null) return false; + + // return GetAllGroups().Remove(groupLocal); + // } public bool UpdateGroupById(int groupID, String name) {