Exemplo n.º 1
0
        public async Task <ServiceResponse> UpdateEntity(tb_DictionaryType entity)
        {
            byte[] bytes = await Server.UpdateEntityByDicAsync(ZipTools.CompressionObject(entity));

            ServiceResponse response = ZipTools.DecompressionObject(bytes) as ServiceResponse;

            return(response);
        }
Exemplo n.º 2
0
        public async Task <ServiceResponse> GetModels(tb_DictionaryType search)
        {
            var bytes = await Server.GetModelsByDicAsync(ZipTools.CompressionObject(search));

            ServiceResponse response = ZipTools.DecompressionObject(bytes) as ServiceResponse;

            return(response);
        }
Exemplo n.º 3
0
        public async Task <ServiceResponse> GetPagingModels(int pageIndex, int pageSize, tb_DictionaryType search, bool Asc = false)
        {
            var bytes = await Server.GetPagingModelsByDicAsync(pageIndex, pageSize, ZipTools.CompressionObject(search), Asc);

            ServiceResponse response = ZipTools.DecompressionObject(bytes) as ServiceResponse;

            return(response);
        }