public void DeleteList(String id, int lcid) { messagesMessage l = new messagesMessage { lcid = lcid }; if (GetList(id).Contains(l)) { GetList(id).Remove(l); } }
private messagesMessage createMessage(String lcidText, String value) { messagesMessage l = new messagesMessage(); var res = from lang in GetDatabaseContext().Languages where lang.Description.Equals(lcidText) select lang.LanguageLCID; l.lcid = res.SingleOrDefault(); l.LcidText = lcidText; l.Value = value; return l; }