Update vor Blazorise
This commit is contained in:
38
BlazorApp/Controller/Views/View_BerufsangebotController.cs
Normal file
38
BlazorApp/Controller/Views/View_BerufsangebotController.cs
Normal file
@@ -0,0 +1,38 @@
|
||||
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<View_Berufsangebot> GetAllData()
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from View_Berufsangebot", false, true);
|
||||
return dbh.ConvertDataTable<View_Berufsangebot>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static List<View_Berufsangebot> GetByID(int ID)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from View_Berufsangebot where id=" + ID.ToString(), false, true);
|
||||
return dbh.ConvertDataTable<View_Berufsangebot>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
public static List<View_Berufsangebot> GetByFirmaID(int ID)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
dbh.Get_Tabledata("Select * from View_Berufsangebot where firmaid=" + ID.ToString(), false, true);
|
||||
return dbh.ConvertDataTable<View_Berufsangebot>(dbh.dsdaten.Tables[0]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user