Database updates
This commit is contained in:
@@ -37,6 +37,14 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
/// </summary>
|
||||
private List<User>? UserList { get; set; }
|
||||
|
||||
public User? SelectedUser { get; set; }
|
||||
|
||||
public IEnumerable<UserGroup> UserGroups => Enum.GetValues<UserGroup>();
|
||||
|
||||
public List<Company> Companies { get; set; }
|
||||
public List<UserGroup> SelectedCompanies { get; set; }
|
||||
public List<string> SelectedCompanyTexts { get; set; } = new();
|
||||
|
||||
#endregion
|
||||
|
||||
#region Override OnAfterRenderAsync
|
||||
@@ -55,6 +63,21 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
|
||||
#endregion
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
Companies = new List<Company>
|
||||
{
|
||||
new Company{Name = "Germany", ISO = "DE"},
|
||||
new Company{Name = "USA", ISO = "US"},
|
||||
new Company{Name = "England", ISO = "GB"},
|
||||
new Company{Name = "Austria", ISO = "AT"}
|
||||
};
|
||||
|
||||
SelectedCompanies = new List<UserGroup> {UserGroups.ElementAt(2)};
|
||||
|
||||
base.OnInitialized();
|
||||
}
|
||||
|
||||
#region Private Method Chang
|
||||
|
||||
/// <summary>
|
||||
@@ -119,5 +142,17 @@ namespace FoodsharingSiegen.Server.Pages
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private async Task SelectedChanged(List<UserGroup> arg)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class Company
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string ISO { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user