Ejemplo n.º 1
0
    public static String Insert(String Grupo, String Codigo, String Nombre, String Padre)
    {
        try
        {
            var item = new GrupoDetalleBean
            {
                IdGrupo = int.Parse(Grupo),
                Codigo  = Codigo,
                Nombre  = Nombre,
                IdCodigoDetallePadre = Padre,
            };
            GrupoDetalleController.Insert(item);

            return("OK");
        }
        catch (Exception ex)
        {
            LogHelper.LogException(ex, "Error :General_Insert : ");
            throw new Exception("ERROR: " + ex.Message);
        }
    }