internal static String Save(DB.RPT_Analytic entry, DataContext dataContext)
        {
            try
            {
                if (dataContext.EntityReportContext.GetEntityState(entry) == EntityState.Detached)
                {
                    dataContext.EntityReportContext.RPT_Analytic.Add(entry);
                }

                Validation.ValidateEntity(dataContext.EntityReportContext, entry);
            }
            catch (Validation.EntityValidationException ex)
            {
                return(dataContext.PackageValidationException());
            }

            return("Success");
        }
 public static DB.RPT_Analytic GetPreviousItem(DB.RPT_Analytic rpt_analytic, DataContext dataContext)
 {
     return(dataContext.EntityReportContext.RPT_Analytic.OrderByDescending(o => o.Name).Where(n => n.Name.CompareTo(rpt_analytic.Name) < 0 && n.Name.CompareTo(rpt_analytic.Name) != 0).FirstOrDefault());
 }