示例#1
0
        //protected static IMapperService mRepoService = new RepoService();


        #region Singular structure result methods

        public static async Task <int> CountAsync()
        {
            using (var repository = mRepoService.CreateRepository <TRepo, TDataAccessModel>())
            {
                return(await repository.CountAsync().ConfigureAwait(false));
            }
        }