Example #1
0
        public MV_Exception softDeleteCamposIniciativas(Modelos.TBC_CAMPOS_INICIATIVA campos_iniciativas, int usuario_borra)
        {
            try
            {
                var res = H_LogErrorEXC.resultToException(_context.SP_TBC_CAMPOS_INICIATIVA_DeleteRow(campos_iniciativas.ID_CAMPO, usuario_borra).FirstOrDefault());

                if (res.IDENTITY == null)
                {
                    throw new System.Exception(res.ERROR_MESSAGE);
                }

                return(res);
            }
            catch (Exception e)
            {
                throw new Exception(e.Message);
            }
        }