Пример #1
0
 public bool AddMessage(Conversation_Reply conversationReply)
 {
     try
     {
         var result = myDB.Conversation_Reply.Add(conversationReply);
         myDB.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }
Пример #2
0
 public bool UpdatePersonIdDelete(Conversation_Reply conversationReply)
 {
     try
     {
         var conversation = GetConversationById(conversationReply.CONVERSATION_REPLY_ID);
         conversation.CONVERSATION_REPLY_ID = conversationReply.CONVERSATION_REPLY_ID;
         conversation.MESSAGE          = conversationReply.MESSAGE;
         conversation.TIME             = conversationReply.TIME;
         conversation.PERSON_ID_FROM   = conversationReply.PERSON_ID_FROM;
         conversation.PERSON_ID_TO     = conversationReply.PERSON_ID_TO;
         conversation.PERSON_ID_DELETE = conversationReply.PERSON_ID_DELETE;
         myDB.SaveChanges();
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }