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); }
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 }; }