public static void Edicion(Models.PRIOALERTAS mPrioridad)
    {
        BLL.PRIOALERTAS    cSP = new BLL.PRIOALERTAS();
        Models.PRIOALERTAS o   = new Models.PRIOALERTAS();
        try
        {
            o.t820_idalerta_1 = mPrioridad.t820_idalerta_1;
            o.t820_idalerta_2 = mPrioridad.t820_idalerta_2;
            o.t820_idalerta_g = mPrioridad.t820_idalerta_g;

            cSP.Update(o);
        }
        catch (Exception ex)
        {
            Shared.LogError.LogearError("Error al actualizar la prioridad de alerta", ex);
            throw new Exception(System.Uri.EscapeDataString("OcurriĆ³ un error al actualizar la prioridad de alerta."));
        }
        finally
        {
            cSP.Dispose();
        }
    }
    public static int Alta(Models.PRIOALERTAS mPrioridad)
    {
        BLL.PRIOALERTAS    cSP = new BLL.PRIOALERTAS();
        Models.PRIOALERTAS o   = new Models.PRIOALERTAS();

        try
        {
            o.t820_idalerta_1 = mPrioridad.t820_idalerta_1;
            o.t820_idalerta_2 = mPrioridad.t820_idalerta_2;
            o.t820_idalerta_g = mPrioridad.t820_idalerta_g;

            return(cSP.Insert(o));
        }
        catch (Exception ex)
        {
            Shared.LogError.LogearError("Error al grabar la prioridad de alerta", ex);
            throw new Exception(System.Uri.EscapeDataString("OcurriĆ³ un error al grabar."));
        }
        finally
        {
            cSP.Dispose();
        }
    }