Esempio n. 1
0
        public string GetMenuMasterDetailById(clsMenuMaster obj)
        {
            string result = "";

            try
            {
                MenuMaster_Entity             objEntities = new MenuMaster_Entity();
                SP_MenuMaster_SelectOneResult objResult   = new SP_MenuMaster_SelectOneResult();
                objResult = objEntities.GetMenuMasterDetailById(obj);
                result    = objResult.ToJSON();
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
            }
            finally
            {
                LoggerFactory.LoggerInstance.LogDebug("Response Value : " + result);
            }
            return(result);
        }
Esempio n. 2
0
        public string UpdateMenuMaster(clsMenuMaster obj)
        {
            string result = "";

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