Exemple #1
0
        /// <summary>
        /// Data list
        /// 数据列表
        /// </summary>
        /// <param name="model">Data model</param>
        /// <param name="response">HTTP Response</param>
        /// <returns>Task</returns>
        public async Task ListAsync(TiplistRQ <T> model, HttpResponse response)
        {
            var parameters = FormatParameters(model);

            AddSystemParameters(parameters);

            var command = CreateCommand(GetCommandName("list as json"), parameters);

            await ReadJsonToStreamAsync(command, response);
        }
Exemple #2
0
 /// <summary>
 /// List
 /// 列表
 /// </summary>
 /// <param name="model">Data model</param>
 /// <param name="response">HTTP Response</param>
 /// <returns>Task</returns>
 public async Task ListAsync(TiplistRQ <T> model, HttpResponse response)
 {
     await Repo.ListAsync(model, response);
 }