using System; using System.Collections.Generic; using System.Linq; using BWPMModels; using BlazorApp.Helper; using Newtonsoft.Json; using System.Data; using Microsoft.AspNetCore.Mvc; namespace BlazorApp.Controller { public class View_BerufsangebotController : ControllerBase { public static List GetAllData() { dbhelper dbh = new dbhelper(); dbh.Get_Tabledata("Select * from View_Berufsangebot", false, true); return dbh.ConvertDataTable(dbh.dsdaten.Tables[0]); } public static List GetByID(int ID) { dbhelper dbh = new dbhelper(); dbh.Get_Tabledata("Select * from View_Berufsangebot where id=" + ID.ToString(), false, true); return dbh.ConvertDataTable(dbh.dsdaten.Tables[0]); } public static List GetByFirmaID(int ID) { dbhelper dbh = new dbhelper(); dbh.Get_Tabledata("Select * from View_Berufsangebot where firmaid=" + ID.ToString(), false, true); return dbh.ConvertDataTable(dbh.dsdaten.Tables[0]); } } }