Ejemplo n.º 1
0
        internal Castle DeleteCastle(int id)
        {
            Castle toDelete = GetCastleById(id);

            if (toDelete == null)
            {
                throw new SystemException("INVALID ID");
            }
            else
            {
                _repo.DeleteCastle(id);
                return(toDelete);
            }
        }
Ejemplo n.º 2
0
 internal void DeleteCastle(int id)
 {
     GetById(id);
     _repo.DeleteCastle(id);
 }