Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public IEnumerable<SadexCustomers> GetCustomerRefresh()
- {
- IEnumerable<SadexCustomers> sadexTokens = null;
- using (SqlConnection connection = new SqlConnection(connectionString))
- {
- sadexTokens = connection.Query<SadexCustomers>("UPDATE [dbo].[sadex_token] SET tok_date_expires=DATEADD( hh, 1, GETDATE() ) WHERE tok_token LIKE @tok_token",
- new { sadexCustomers.tok_token });
- return sadexTokens;
- }
- }
- [HttpGet("Logout")]
- public async Task<IActionResult> GetCustomersLogout()
- {
- customer.GetCustomerLogout();
- return Ok(true);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement