public static void SetKnownWord(Model.tblengWord enWorld, bool isKnown) { /*................. tarihlerrrr * eğer isknow doğruysa tarihler set edilecek date olacak onu da güncelleyecez * * */ }
public static bool AddWord(string trWord, string trSentences, string enWord, string enSentences) { if (!string.IsNullOrEmpty(trWord)) { Model.tbltrWord yeniTrWord = new Model.tbltrWord(); yeniTrWord.trWord = trWord; yeniTrWord.trSentences = trSentences; Model.tblengWord yeniEngWord = new Model.tblengWord(); yeniEngWord.engWord = enWord; yeniEngWord.engSentences = enSentences; OrtakDb.db.tbltrWords.Add(yeniTrWord); OrtakDb.db.tblengWords.Add(yeniEngWord); OrtakDb.db.SaveChanges(); return(true); } return(false); }