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