示例#1
0
        public MV_Exception GuardarCamposIniciativas(TBC_CAMPOS_INICIATIVA campos_iniciativas, int idUsuario)
        {
            var result = new MV_Exception();

            try
            {
                result = H_LogErrorEXC.resultToException(_context.SP_TBC_CAMPOS_INICIATIVA_Insert(campos_iniciativas.ID_CAMPO, campos_iniciativas.ID_TIPO_INICIATIVA, campos_iniciativas.NOMBRE_CAMPO, idUsuario));
                if (result.IDENTITY == null)
                {
                    throw new Exception(result.ERROR_MESSAGE);
                }
            }
            catch (Exception e)
            {
                H_LogErrorEXC.GuardarRegistroLogError(e);
            }
            return(result);
        }