Update 20210528 - mit LoginPopup
This commit is contained in:
@@ -36,7 +36,14 @@ namespace CoreWebAPI1.Controllers
|
||||
List<User> Details = new List<User>();
|
||||
return dbh.ConvertDataTable<User>(dbh.Get_Tabledata("Select * from [user] where id=" + id.ToString(), false, true));
|
||||
}
|
||||
[HttpGet("{username},{passwort}")]
|
||||
public List<User> Get(string username, string passwort)
|
||||
{
|
||||
dbhelper dbh = new dbhelper();
|
||||
List<User> Details = new List<User>();
|
||||
return dbh.ConvertDataTable<User>(dbh.Get_Tabledata("Select * from [user] where aktiv=1 and username='"+username+"' and passwort='"+passwort+"'", false, true));
|
||||
|
||||
}
|
||||
// POST api/<UserController>
|
||||
[HttpPost]
|
||||
public void Post([FromBody] User user)
|
||||
|
||||
Reference in New Issue
Block a user