Esempio n. 1
0
        public string GetInstancesDetailById(clsinstances obj)
        {
            string result = "";

            try
            {
                instances_Entity             objEntities = new instances_Entity();
                SP_instances_SelectOneResult objResult   = new SP_instances_SelectOneResult();
                objResult = objEntities.GetInstancesDetailById(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 UpdateInstances(clsinstances obj)
        {
            string result = "";

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