Example #1
0
        public virtual SP_PageMaster_SelectOneResult GetPageMasterDetailById(clsPageMaster obj)
        {
            SP_PageMaster_SelectOneResult objResult = new SP_PageMaster_SelectOneResult();

            try
            {
                objResult = (SP_PageMaster_SelectOneResult)db.SP_PageMaster_SelectOne(obj.Pageid);
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
                throw ex;
            }
            return(objResult);
        }
        public string GetPageMasterDetailById(clsPageMaster obj)
        {
            string result = "";

            try
            {
                PageMaster_Entity             objEntities = new PageMaster_Entity();
                SP_PageMaster_SelectOneResult objResult   = new SP_PageMaster_SelectOneResult();
                objResult = objEntities.GetPageMasterDetailById(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }