public string Castle(int type = 1) { if (type == 1) { return(_cService.GetCurrentUtcTime()); } else if (type == 2) { _cService.DeleteSomething(1); return("ok"); } else if (type == 3) { return(_cService.PutSomething("123")); } else if (type == 4) { var res = _cService.GetDemo(111); return($"{res.Id}-{res.Name}-{res.CreateTime}"); } else { return("wait"); } }
public string Castle(int type = 1) { if (type == 1) { return(_cService.GetCurrentUtcTime()); } else if (type == 2) { _cService.DeleteSomething(1); return("ok"); } else if (type == 3) { return(_cService.PutSomething("123")); } else { return("wait"); } }