Esempio n. 1
0
 public static bool BOT_CONVERSATION_Upd(BOT_CONVERSATION conversation)
 {
     try
     {
         using (BotDBContext context = new BotDBContext())
         {
             try
             {
                 context.BOT_CONVERSATION.Attach(conversation);
                 context.Entry(conversation).State = System.Data.Entity.EntityState.Modified;
                 context.SaveChanges();
                 return(true);
             }
             catch (Exception ex)
             {
                 return(false);
             }
         }
     }
     catch (Exception ex)
     {
         return(false);
     }
 }