Exemplo n.º 1
0
 /// <summary>
 /// Metodo para Crear un registro de Formula
 /// </summary>
 /// <param name="info">Valores de la entidad que será creada</param>
 internal int Crear(FormulaInfo info)
 {
     try
     {
         Logger.Info();
         Dictionary <string, object> parameters = AuxFormulaDAL.ObtenerParametrosCrear(info);
         int result = Create("Formula_Crear", parameters);
         return(result);
     }
     catch (SqlException ex)
     {
         Logger.Error(ex);
         throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex);
     }
     catch (DataException ex)
     {
         Logger.Error(ex);
         throw new ExcepcionServicio(MethodBase.GetCurrentMethod(), ex);
     }
     catch (Exception ex)
     {
         Logger.Error(ex);
         throw new ExcepcionDesconocida(MethodBase.GetCurrentMethod(), ex);
     }
 }