示例#1
0
        public async Task <ServiceResponse> UpdateEntity(tb_Dictionary entity)
        {
            byte[] bytes = await Server.UpdateEntityByDicAsync(ZipTools.CompressionObject(entity));

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

            return(response);
        }
示例#2
0
        public async Task <ServiceResponse> GetModels(tb_Dictionary search)
        {
            var bytes = await Server.GetModelsByDicAsync(ZipTools.CompressionObject(search));

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

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

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

            return(response);
        }
示例#4
0
 public DictionaryDialogViewModel()
 {
     Dictionary = new tb_Dictionary();
 }