public VPickAdvice Advice(long id, string TypeCode) { if (TypeCode == "Pick") { return(pickService.Advice(id)); } else { return(waveService.Advice(id)); } }
public JsonResult Advice([FromUri] long id) { var result = pickService.Advice(id); return(new JsonResult(result)); }