public async Task <string> CastleAsync(int type = 1) { if (type == 1) { return(await _cService.GetUtcTimeAsync()); } else { return(await Task.FromResult <string>("wait")); } }
public async Task <string> CastleAsync(int type = 1) { if (type == 1) { return(await _cService.GetUtcTimeAsync()); } else if (type == 2) { var res = await _cService.GetDemoAsync(999); return($"{res.Id}-{res.Name}-{res.CreateTime}"); } else { return(await Task.FromResult <string>("wait")); } }