Ejemplo n.º 1
0
 public void InsertFromInfo(EncuestaAlimentoEntityInfo EntityInfo)
 {
     try
     {
         EncuestaAlimentoEntityInsert EntityInsert = new EncuestaAlimentoEntityInsert();
         EntityInsert.LoadFromInfo(EntityInfo);
         this.Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }
Ejemplo n.º 2
0
 public void Insert(EncuestaAlimentoEntityInsert EntityInsert)
 {
     try
     {
         if (!EntityInsert.Validate())
         {
             throw new Exception(EntityInsert.ErroresQueInvalidanLaEntidad);
         }
         this.CreateDataAccess().Insert(EntityInsert);
     }
     catch (Exception ex)
     {
         Helpers.Logger.Logger.LogExceptionStatic(ex);
         throw ex;
     }
 }