This commit is contained in:
Dimitar Byalkov
2021-03-20 17:09:18 +02:00
parent 5da8b71fe0
commit e3b1409b69
3 changed files with 55 additions and 18 deletions

View File

@@ -12,7 +12,7 @@ namespace Display.Views
UserController userctl = new UserController();
public AdminView(User currentUser) : base(currentUser)
{
this.currentUser = currentUser;
}
public override void ShowAvaliableCommands()
{
@@ -300,6 +300,7 @@ namespace Display.Views
}
public void AddItem()
{
ProductController productctrl = new ProductController(currentUser);
try
{
Console.WriteLine("Adding item to database...");