示例#1
0
        public void TryDelete(NumeroControl numControl, string tipoAviso)
        {
            var ex = new InspeccionesRepositorio().Delete(numControl, tipoAviso);

            //return ex;

            if (ex != null)
            {
                throw new Exception(ex.Message);
            }
        }
示例#2
0
        public void TryCrear(Inspeccion inspeccion)
        {
            var ex = new InspeccionesRepositorio().Crear(inspeccion);

            //return ex;

            if (ex != null)
            {
                throw new Exception(ex.Message);
            }
        }