public static bool UpdateGaBaseData(int type, DateTime st, DateTime et)
        {
            bool flag = false;

            try
            {
                offlineBbhomeDataContext ctx = new offlineBbhomeDataContext();
                flag = ctx.GA_Logs.Any(c => c.Type == type && c.GAStartDate == st && c.GAEndDate == et && c.Status == false);

                if (flag)
                {
                    flag = false;
                    GA_Log log = null;
                    log = ctx.GA_Logs.FirstOrDefault(c => c.Type == type && c.GAStartDate == st && c.GAEndDate == et && c.Status == false);

                    if (log != null)
                    {
                        log.Status = true;

                        ctx.SubmitChanges();
                        flag = true;
                    }
                }
            }
            catch (Exception ex)
            {
                return(false);
            }

            return(flag);
        }
 partial void DeleteGA_Log(GA_Log instance);
 partial void UpdateGA_Log(GA_Log instance);
 partial void InsertGA_Log(GA_Log instance);
 partial void DeleteGA_Log(GA_Log instance);
 partial void UpdateGA_Log(GA_Log instance);
 partial void InsertGA_Log(GA_Log instance);