...
This commit is contained in:
@@ -67,5 +67,23 @@ namespace Back.Controllers
|
||||
|
||||
return Ok(await _servTaxPayer.PreparationInvoiceBeforeSending(item, result));
|
||||
}
|
||||
[HttpPost("CheckAuth")]
|
||||
public async Task<ActionResult<string>> CheckAuth([FromBody] CheckAuthDTO item)
|
||||
{
|
||||
|
||||
if (item == null)
|
||||
return BadRequest("مدل صحیح نمی باشد");
|
||||
|
||||
using (ActionTaxPayer action = new ActionTaxPayer(item.UniqueMemory, item.PrivateKey))
|
||||
{
|
||||
if (action.login())
|
||||
return Ok();
|
||||
}
|
||||
|
||||
|
||||
|
||||
return BadRequest();
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user