internal Boquet GetById(int id) { Boquet Boquet = _repo.GetById(id); if (Boquet == null) { throw new Exception("invalid Id"); } return(Boquet); }
internal IEnumerable <Flower> GetFlowersByBoquetId(int flowerId) { Boquet exists = _brepo.GetById(flowerId); if (exists == null) { throw new Exception("Invalid Id"); } return(_repo.GetFlowersByBoquetId(flowerId)); }