示例#1
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);
        }
示例#2
0
        /// <inheritdoc />
        public Cotizacion Find(int id)
        {
            Cotizacion Cotizacion = _repositoryCotizacion.GetById(id);

            if (Cotizacion == null)
            {
                throw new DataException("La cotizacion no existe en la base de datos.");
            }
            return(Cotizacion);
        }