Пример #1
0
        public IEnumerable <ChildDm> GetByTeam(TeamDm team)
        {
            var all      = ChildDataMapper.Instance.SelectAll();
            var filtered = new List <ChildDm>();

            foreach (var c in all)
            {
                if (c.TeamId == team.Id)
                {
                    filtered.Add(new ChildDm(c));
                }
            }
            return(filtered);
        }
Пример #2
0
 public void Update(TeamDm obj)
 {
     TeamDataMapper.Instance.Update(obj.ToDbDto());
 }
Пример #3
0
 public void Remove(TeamDm obj)
 {
     TeamDataMapper.Instance.Delete(obj.ToDbDto());
 }
Пример #4
0
 public void Add(TeamDm obj)
 {
     TeamDataMapper.Instance.Insert(obj.ToDbDto());
 }