Ejemplo n.º 1
0
        /// <summary>
        /// Dashboard formundaki layout ayarlarını getirir.
        /// </summary>
        public static Stream DashboardLayoutGetir(int iDashboardID)
        {
            BarduckCRMEntities data = new BarduckCRMEntities();

            try
            {
                var List = data.S_Dashboard(iDashboardID, -1).ToList(); //MListler.MList_S_Dashboard.Where(u => u.ID == iDashboardID);
                if (List == null)
                {
                    return(null);
                }
                byte[] bLayout = null;
                bLayout = (byte[])List.FirstOrDefault().Layout;
                return(Genel.ByteArrayToStream(bLayout));
            }
            catch (Exception exc)
            {
                return(null);
            }
        }