...
This commit is contained in:
@@ -59,8 +59,8 @@ namespace Back.Controllers
|
||||
// return BadRequest(item);
|
||||
|
||||
//-----GetUserAndCompany
|
||||
var claim = "64"/* HttpContext.User.Claims.First(c => c.Type == "UserID")*/;
|
||||
var UserID = claim;
|
||||
var claim = HttpContext.User.Claims.First(c => c.Type == "UserID");
|
||||
var UserID = claim.Value;
|
||||
var user = await _servUser.GetUserByUserID(Convert.ToInt32(UserID));
|
||||
|
||||
//-----Validaton
|
||||
@@ -78,7 +78,7 @@ namespace Back.Controllers
|
||||
//}
|
||||
|
||||
|
||||
return Ok(_servInvoice.AddInvoice(new Invoice()
|
||||
return Ok(await _servInvoice.AddInvoice(new Invoice()
|
||||
{
|
||||
|
||||
Title = item.Title,
|
||||
|
Reference in New Issue
Block a user