public IActionResult reset([FromQuery(Name = "func")] string func) { ReversiPlay rvPlay = this.getReversiPlay(); rvPlay.reset(); return(Content(this.getResJson(rvPlay), "application/json")); }
public IActionResult setSetting([FromQuery(Name = "func")] string func, [FromQuery(Name = "para")] string para) { ReversiPlay rvPlay = this.getReversiPlay(); rvPlay.mSetting = JsonConvert.DeserializeObject <ReversiSetting>(para); rvPlay.reset(); return(Content(this.getResJson(rvPlay), "application/json")); }