public Side GetById(int id)
        {
            var exists = _repo.GetById(id);

            if (exists == null)
            {
                throw new Exception
                          ("Invalid Id");
            }
            return(exists);
        }
Пример #2
0
        internal Side Get(int id)
        {
            Side side = _repo.GetById(id);

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