Inventory
This commit is contained in:
@@ -11,6 +11,7 @@ namespace Back.Controllers.Warehouse
|
||||
{
|
||||
private readonly WarehouseService _warehouseService;
|
||||
private readonly servUser _servUser;
|
||||
[HttpGet("Circulation")]
|
||||
public async Task<IActionResult> Circulation(string date = "", int CODID = 0, int PageIndex = 1, int PageSize = 5)
|
||||
{
|
||||
var claim = HttpContext.User.Claims.First(c => c.Type == "UserID");
|
||||
@@ -19,6 +20,14 @@ namespace Back.Controllers.Warehouse
|
||||
var CompanyID = user.RolUsers.First().CompanyID;
|
||||
return Ok(await _warehouseService.Circulation(CompanyID,date,CODID));
|
||||
}
|
||||
|
||||
[HttpGet("Inventory/{CODID}")]
|
||||
public async Task<IActionResult> Inventory(int CODID)
|
||||
{
|
||||
var claim = HttpContext.User.Claims.First(c => c.Type == "UserID");
|
||||
var UserID = claim.Value;
|
||||
var user = await _servUser.GetUserByUserID(Convert.ToInt32(UserID));
|
||||
var CompanyID = user.RolUsers.First().CompanyID;
|
||||
return Ok(await _warehouseService.Inventory(CompanyID, CODID));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user