Bug Fixes
This commit is contained in:
1 parent
0b8babd520
commit
5da8b71fe0
4 files changed
+19
-9
No files matched your search
@@ -308,6 +308,8 @@ namespace Business.Business.Sales
|
||||
throw new ArgumentException("Insufficient Role!");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public void AddAmount(int productId ,double Amount)
|
||||
{
|
||||
if (currentUser.RoleId > 1)
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user