internal Castle DeleteCastle(int id) { Castle toDelete = GetCastleById(id); if (toDelete == null) { throw new SystemException("INVALID ID"); } else { _repo.DeleteCastle(id); return(toDelete); } }
internal void DeleteCastle(int id) { GetById(id); _repo.DeleteCastle(id); }