30 lines
734 B
C#
30 lines
734 B
C#
using data.DAO;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace data.Repository
|
|
{
|
|
public class LocalGroupRepository : IGroupRepository
|
|
{
|
|
private IEnumerable<GroupDAO> _groups = new List<GroupDAO>()
|
|
{
|
|
new GroupDAO{ Id = 1, Name = "g1" },
|
|
new GroupDAO{ Id = 2, Name = "g2" },
|
|
new GroupDAO{ Id = 3, Name = "g3" },
|
|
new GroupDAO{ Id = 4, Name = "g4" }
|
|
};
|
|
public bool addGroup(GroupDAO group)
|
|
{
|
|
throw new NotImplementedException();
|
|
}
|
|
|
|
public IEnumerable<GroupDAO> getAllGroup()
|
|
{
|
|
return _groups;
|
|
}
|
|
}
|
|
}
|