Beispiel #1
0
        public async Task <IdentityResult> AbstractAsync(
            string whereTerm = null, FilterRequest filterRequest = null)
        {
            using (var connection = _connectionService.Create())
            {
                var result = new IdentityResult();
                var items  = await _databaseActions.Abstract <T>(connection, whereTerm, filterRequest);

                if (items == null)
                {
                    result = IdentityResult.FetchFailed();
                }
                else
                {
                    result.Succeeded = true;
                    result.Model     = items;
                }
                return(result);
            }
        }