public IEnumerable <Pet> Get(int id, int flag) { var pets = _rep.GetByUserId(id); foreach (var p in pets) { p.Kind = _kind.GetById(p.KindId); p.Breed = _breed.GetById(p.BreedId); p.Color = _color.GetById(p.ColorId); } return(pets); }
public IEnumerable <Pet> Get(int id, int flag) { var pets = _rep.GetByUserId(id); foreach (var p in pets) { p.Kind = _kind.GetById(p.KindId); p.Breed = _breed.GetById(p.BreedId); p.Color = _color.GetById(p.ColorId); } return(pets); }