Exemple #1
0
 public int Delete(WordInformation request)
 {
     var word = new Word()
     {
         chinese = request.chinese,
         english = request.english,
         passed = request.passed,
         lastTested = request.lastTested
     };
     return Repo.DeleteWord(word);
 }
Exemple #2
0
 public object Post(WordInformation submission)
 {
     var word = new Word()
     {
         chinese = submission.chinese,
         english = submission.english,
         passed = submission.passed,
         lastTested = submission.lastTested
     };
     var id = Repo.AddWord(word);
     return new { Id = id };
 }