You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
947 B
32 lines
947 B
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);
|
|
|
|
|
|
}
|
|
}
|
|
}
|