Пример #1
0
        public static ObjectComment Load(Guid comId)
        {
            ObjectComment comment = new ObjectComment();

            try
            {
                CSBooster_DataContext cdc    = new CSBooster_DataContext(Helper.GetSiemeConnectionString());
                CommentResult         result = cdc.hisp_Comments_GetComment(comId).ElementAtOrDefault(0);

                if (result != null)
                {
                    FillComment(comment, result);
                }
            }
            catch
            {
            }
            return(comment);
        }
Пример #2
0
        public static ObjectComment Load(Guid comId)
        {
            ObjectComment comment = new ObjectComment();

            try
            {
                CSBooster_DataContext cdc    = new CSBooster_DataContext(ConfigurationManager.ConnectionStrings["CSBoosterConnectionString"].ConnectionString);
                CommentResult         result = cdc.hisp_Comments_GetComment(comId).ElementAtOrDefault(0);

                if (result != null)
                {
                    FillComment(comment, result);
                }
            }
            catch
            {
            }
            return(comment);
        }