32 lines
947 B
C#
32 lines
947 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Threading.Tasks;
|
|
using BWPMModels;
|
|
using BlazorApp.Helper;
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
namespace BlazorApp.Controller
|
|
{
|
|
public class MyScriptController
|
|
{
|
|
public static List<MyScriptGenerator> GetAllData()
|
|
{
|
|
Helper.HttpClientHelper httpcli = new Helper.HttpClientHelper();
|
|
httpcli.CallService("Optionen", "", "GET", null);
|
|
return JsonConvert.DeserializeObject<List<MyScriptGenerator>>(httpcli.Results.daten);
|
|
|
|
}
|
|
|
|
public static List<MyScriptGenerator> GetData(int fnkt, string tablename)
|
|
{
|
|
Helper.HttpClientHelper httpcli = new Helper.HttpClientHelper();
|
|
httpcli.CallService("MyScript", fnkt.ToString()+","+tablename+"", "GET", null);
|
|
return JsonConvert.DeserializeObject<List<MyScriptGenerator>>(httpcli.Results.daten);
|
|
|
|
|
|
}
|
|
}
|
|
}
|