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; } }
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; } }