Example #1
0
        /// <inheritdoc />
        public void Eliminar(Cotizacion cotizacion)
        {
            if (cotizacion == null)
            {
                throw new ArgumentException("La cotizacion a eliminar es null");
            }

            _repositoryCotizacion.Remove(cotizacion);
        }
Example #2
0
        public void  EliminarCotizacion(int id)
        {
            Cotizacion cotizacion = _repositoryCotizacion.GetById(id);


            if (cotizacion == null)
            {
                throw new ModelException("La cotizacion no puede ser nula");
            }
            _repositoryCotizacion.Remove(cotizacion);
        }