예제 #1
0
 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()));
     }
 }
예제 #2
0
 public ActionResult Get()
 {
     try
     {
         var dbHelper = new DbHelperService();
         return(Ok(dbHelper.GetScoreData()));
     }
     catch (Exception EX)
     {
         return(Problem(EX.ToString()));
     }
 }