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); }
public void Update(TeamDm obj) { TeamDataMapper.Instance.Update(obj.ToDbDto()); }
public void Remove(TeamDm obj) { TeamDataMapper.Instance.Delete(obj.ToDbDto()); }
public void Add(TeamDm obj) { TeamDataMapper.Instance.Insert(obj.ToDbDto()); }