Exemple #1
0
        public static string GetEntityResponse(string id)
        {
            var entity = new EntityResponse {
                RquId = id
            };

            return(entity.GetSource());
        }
Exemple #2
0
        public static bool SetEntityResponse(string id, string data)
        {
            var entity = new EntityResponse {
                RquId = id
            };

            return(entity.SetSource(data) != -1);
        }
 public static string LoadEntity(string rquId)
 {
     try
     {
         var entity = new DbClassLibrary.EntityResponse {
             RquId = rquId
         };
         var data = entity.GetSource();
         if (string.IsNullOrEmpty(data))
         {
             throw new ApplicationException("Unable to retrieve entity id: " + rquId);
         }
         return(data);
     }
     catch (Exception ex)
     {
         ErrorLog.LogError(ex, new CallingMethod());
         throw;
     }
 }
Exemple #4
0
 /// <summary>
 /// Gets the general purpose entity text.
 /// </summary>
 /// <param name="guid">The unique identifier.</param>
 /// <returns></returns>
 public static string GetEntity(string guid)
 {
     return(EntityResponse.GetEntityResponse(guid));
 }
Exemple #5
0
 /// <summary>
 /// Sets the general purpose entity text.
 /// </summary>
 /// <param name="guid">The unique identifier.</param>
 /// <param name="data">The data.</param>
 /// <returns></returns>
 public static bool SetEntity(string guid, string data)
 {
     return(EntityResponse.SetEntityResponse(guid, data));
 }