예제 #1
0
        //string connectionString = ConfigurationManager.ConnectionStrings["ConnectionTA"].ToString();

        #endregion

        #region Employee

        /// <summary>
        ///
        /// </summary>
        /// <param name="employee"></param>
        /// <param name="operation"></param>
        public void SavePerson(PersonDTO person, string operation)
        {
            IUniversalConnector connector = new UniversalConnectorImpl(ServerEnumType.SqlServer, connectionString);

            try
            {
                //Todos los registros
                object[] parameters = new object[] { 1, person.PersonId, person.IdentificationNumber, person.PersonName,
                                                     person.PersonBirthDate, person.PersonWeight, person.PersonStatus,
                                                     operation };
                connector.ExecuteNonQuery(CommandType.StoredProcedure, "SavePerson", parameters);
            }
            catch (Exception exception)
            {
            }
            finally
            {
                connector.Dispose();
            }
        }