get invoice view
This commit is contained in:
@@ -36,6 +36,19 @@ namespace Back.Controllers
|
||||
return Ok(await _servCus.GetCustomers(user.RolUsers.First().CompanyID, itemSerch));
|
||||
|
||||
|
||||
}
|
||||
[HttpGet("GetAllForidName")]
|
||||
public async Task<ActionResult<List<ForCustomerSearch>>> GetAllForSearch()
|
||||
{
|
||||
var claim = HttpContext.User.Claims.First(c => c.Type == "UserID");
|
||||
var UserID = claim.Value;
|
||||
var user = await _servUser.GetUserByUserID(Convert.ToInt32(UserID));
|
||||
|
||||
|
||||
|
||||
return Ok(await _servCus.GetCustomers(user.RolUsers.First().CompanyID));
|
||||
|
||||
|
||||
}
|
||||
[HttpPost("Add")]
|
||||
public async Task<ActionResult<bool>> Add(RCustomer item)
|
||||
|
Reference in New Issue
Block a user