public Kit Get(int id) { Kit exists = _repo.Get(id); if (exists == null) { throw new Exception("Invalid Id Homie"); } return(exists); }
internal IEnumerable <Brick> GetBricksByKitId(int kitId) { Kit exists = _krepo.Get(kitId); if (exists == null) { throw new Exception("Invalid Id"); } return(_repo.GetBricksByKitId(kitId)); }
// public IEnumerable<KitPart> GetBricks(int kitId) // { // Kit exists = _krepo.Get(kitId); // if (exists == null) { throw new Exception("Invalid Id Homie"); } // return _repo.getBricksByKitId(kitId); // } public IEnumerable <KitBrick> GetBricks(int kitId) { Kit exists = _krepo.Get(kitId); if (exists == null) { throw new Exception("Invalid Id Homie"); } return(_repo.getBricksByKitId(kitId)); }
internal IEnumerable <Kit> Get() { return(_repo.Get()); }
public IEnumerable <Kit> Get() { return(_repo.Get()); }