Database updates

This commit is contained in:
Andre Beging
2022-04-08 16:10:26 +02:00
parent e8f9c4c0f5
commit 7fb5ecf04a
15 changed files with 583 additions and 180 deletions

View File

@@ -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; }
}
}