public virtual SP_instances_SelectOneResult GetInstancesDetailById(clsinstances obj)
        {
            SP_instances_SelectOneResult objResult = new SP_instances_SelectOneResult();

            try
            {
                objResult = (SP_instances_SelectOneResult)db.SP_instances_SelectOne(obj.InstanceID);
            }
            catch (Exception ex)
            {
                LoggerFactory.LoggerInstance.LogException(ex);
                throw ex;
            }
            return(objResult);
        }
        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);
        }