internal Brick GetById(int id) { var found = _repo.GetById(id); if (found == null) { throw new Exception("Invalid Id"); } return(found); }
internal Brick GetById(int id) { var exists = _repo.GetById(id); if (exists == null) { throw new Exception("Invalid ID"); } return(exists); }
internal Brick Get(int Id) { Brick exists = _repo.GetById(Id); if (exists == null) { throw new Exception("Invalid Brick Dawg!"); } return(exists); }
internal Brick Get(int id) { Brick brick = _repo.GetById(id); if (brick == null) { throw new Exception("invalid Id"); } return(brick); }