Ejemplo n.º 1
0
 private async Task<bool> SetIndex_Test(string title, string content)
 {
     var news = new News
     {
         Id = Guid.Parse("{B0A0F268-28E3-4151-9DAC-F970C6991C79}"),
         OrderIndex = Environment.TickCount,
         CreateTime = DateTime.Now,
         Title = title,
         Content = content
     };
     return await client.SetIndex(news);
 }
Ejemplo n.º 2
0
 private async Task<bool> SetIndex_Test(string title, string content)
 {
     var news = new News
     {
         Id = Guid.NewGuid(),
         OrderIndex = Environment.TickCount,
         CreateTime = DateTime.Now,
         Title = title,
         Content = content
     };
     return await client.SetIndex(news);
 }