コード例 #1
0
    public static string obtenerAccionesCRM(string ta206_itemorigen, int ta206_iditemorigen)
    {
        BLL.AccionPreventa            cAP = new BLL.AccionPreventa();
        Models.AccionCatRequestFilter rf  = new Models.AccionCatRequestFilter();

        rf.ta206_itemorigen   = ta206_itemorigen;
        rf.ta206_iditemorigen = ta206_iditemorigen;

        try
        {
            return(JsonConvert.SerializeObject(cAP.Catalogo(rf)));
        }
        catch (Exception ex)
        {
            Shared.LogError.LogearError("Error al cargar la acción preventa", ex);
            throw new Exception(System.Uri.EscapeDataString("No se ha podido obtener los datos de la acción preventa."));
        }
        finally
        {
            cAP.Dispose();
        }
    }