Exemple #1
0
 public async Task <bool> LogoutAsync(IRequestCookieCollection cookies)
 {
     return(await Task.Run(async() =>
     {
         var token = cookies["Token"];
         return await _tokenCrud.DeleteAsync(token) && await _tokenCrud.SaveAsync();
     }));
 }
Exemple #2
0
 public async Task DeleteAsync(Entity entity)
 {
     if (_crudValidator != null)
     {
         await _crudValidator.DeleteAsync(entity);
     }
     await _crudManager.DeleteAsync(entity);
 }