예제 #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());
 }