Beispiel #1
0
 public void Create(Convenio tipo)
 {
     try
     {
         _crudFactory.Create(tipo);
         gestorAccion.Create(AccionPara);
     }
     catch (TRV_Exception ex)
     {
         throw ex;
     }
 }
Beispiel #2
0
        public void Create(Convenio convenio)
        {
            try
            {
                var convenioId = GetById(convenio);

                if (convenioId != null)
                {
                    throw new BusinessException(303);
                }

                _crudFactory.Create(convenio);
                _crudFactory.CreateRelationIds(convenio);
            }
            catch (Exception e)
            {
                ExceptionManager.GetInstance().Process(e);
            }
        }