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);
        }
        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);
        }