Bug Fixes

This commit is contained in:
thermalthrottle
2021-03-20 14:33:21 +02:00
parent 0b8babd520
commit 5da8b71fe0
4 changed files with 19 additions and 9 deletions

View File

@@ -308,6 +308,8 @@ namespace Business.Business.Sales
throw new ArgumentException("Insufficient Role!");
}
}
public void AddAmount(int productId ,double Amount)
{
if (currentUser.RoleId > 1)

View File

@@ -51,6 +51,14 @@ namespace Business.Business.UserManagment
{
this.currentUser = currentUser;
this.context = context;
this.rolectrl = new RoleController(currentUser);
}
public UserController(User currentUser, LuminousContext context, RoleController rolectrl)
{
this.currentUser = currentUser;
this.context = context;
this.rolectrl = rolectrl;
}
/// <summary>