Esempio n. 1
0
        public bool Delete(int id)
        {
            var _invoice = _repository.FindbyId(id);

            if (_invoice == null)
            {
                throw new Exception("Factura no existe");
            }
            return(_repository.Delete(id));
        }