Ejemplo n.º 1
0
        public string GetSubMenuMasterDetailById(clsSubMenuMaster obj)
        {
            string result = "";

            try
            {
                SubMenuMaster_Entity             objEntities = new SubMenuMaster_Entity();
                SP_SubMenuMaster_SelectOneResult objResult   = new SP_SubMenuMaster_SelectOneResult();
                objResult = objEntities.GetSubMenuMasterDetailById(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
Ejemplo n.º 2
0
        public string UpdateSubMenuMaster(clsSubMenuMaster obj)
        {
            string result = "";

            try
            {
                SubMenuMaster_Entity objEntities = new SubMenuMaster_Entity();
                // SP_customers_SelectOneResult CustomerData = new SP_customers_SelectOneResult();
                int objResult;
                objResult = objEntities.UpdateSubMenuMaster(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }