Beispiel #1
0
    public static int grabarArea(Models.AreaPreventa oArea, List <Models.FiguraAreaPreventa> lstFigurasArea)
    {
        BLL.AreaPreventa cAP = new BLL.AreaPreventa();

        try
        {
            return(cAP.grabarArea(oArea, lstFigurasArea));
        }
        catch (Exception ex)
        {
            LogError.LogearError("Error al grabar el área", ex);
            throw ex;
        }
        finally
        {
            if (cAP != null)
            {
                cAP.Dispose();
            }
        }
    }
    public static string getpplporsubareaparaficepi()
    {
        IB.SUPER.SIC.BLL.AreaPreventa cTP = new IB.SUPER.SIC.BLL.AreaPreventa();

        try
        {
            return(JsonConvert.SerializeObject(cTP.getpplporsubareaparaficepi(int.Parse(HttpContext.Current.Session["IDFICEPI_PC_ACTUAL"].ToString()))));
        }
        catch (Exception ex)
        {
            LogError.LogearError("Error al obtener los áreas-subáreas", ex);
            throw new Exception("Error al obtener los áreas-subáreas");
        }
        finally
        {
            if (cTP != null)
            {
                cTP.Dispose();
            }
        }
    }