Bug Fixes
This commit is contained in:
@@ -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