Ejemplo n.º 1
0
        internal Brick GetById(int id)
        {
            var found = _repo.GetById(id);

            if (found == null)
            {
                throw new Exception("Invalid Id");
            }
            return(found);
        }
Ejemplo n.º 2
0
        internal Brick GetById(int id)
        {
            var exists = _repo.GetById(id);

            if (exists == null)
            {
                throw new Exception("Invalid ID");
            }
            return(exists);
        }
Ejemplo n.º 3
0
        internal Brick Get(int Id)
        {
            Brick exists = _repo.GetById(Id);

            if (exists == null)
            {
                throw new Exception("Invalid Brick Dawg!");
            }
            return(exists);
        }
Ejemplo n.º 4
0
        internal Brick Get(int id)
        {
            Brick brick = _repo.GetById(id);

            if (brick == null)
            {
                throw new Exception("invalid Id");
            }
            return(brick);
        }