/// <summary> /// Inserta un elemento en la base de datos. (Capa de Negocio) /// </summary> /// <param name=""></param> public static bool InsertProfile(Guid UserId, string PropertyNames, string PropertyValuesString, byte[] PropertyValuesBinary, DateTime LastUpdatedDate) { ProfilesDAL profileDAL = null; bool bResult = false; profileDAL = new ProfilesDAL(); try { try { profileDAL.Insert(UserId, PropertyNames, PropertyValuesString, PropertyValuesBinary, LastUpdatedDate, CommonENT.MYCTSDBSECURITY_CONNECTION); } catch (Exception ex) { new EventsManager.EventsManager(ex, EventsManager.EventsManager.OrigenError.BaseDeDatos); profileDAL.Insert(UserId, PropertyNames, PropertyValuesString, PropertyValuesBinary, LastUpdatedDate, CommonENT.MYCTSDBSECURITYBACKUP_CONNECTION); } bResult = true; } catch (Exception ex) { throw ex; } finally { profileDAL = null; } return(bResult); }