public ActionResult Post(string name, int score) { try { var dbHelper = new DbHelperService(); return(Ok(dbHelper.AddScoreData(name, score))); } catch (Exception EX) { return(Problem(EX.ToString())); } }
public ActionResult Get() { try { var dbHelper = new DbHelperService(); return(Ok(dbHelper.GetScoreData())); } catch (Exception EX) { return(Problem(EX.ToString())); } }