Advertisement
Guest User

Untitled

a guest
Jun 19th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. public IEnumerable<SadexCustomers> GetCustomerRefresh()
  2. {
  3.  
  4. IEnumerable<SadexCustomers> sadexTokens = null;
  5. using (SqlConnection connection = new SqlConnection(connectionString))
  6. {
  7.  
  8. sadexTokens = connection.Query<SadexCustomers>("UPDATE [dbo].[sadex_token] SET tok_date_expires=DATEADD( hh, 1, GETDATE() ) WHERE tok_token LIKE @tok_token",
  9. new { sadexCustomers.tok_token });
  10. return sadexTokens;
  11. }
  12. }
  13.  
  14. [HttpGet("Logout")]
  15. public async Task<IActionResult> GetCustomersLogout()
  16. {
  17. customer.GetCustomerLogout();
  18. return Ok(true);
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement