Beispiel #1
0
 /// <summary>
 /// </summary>
 /// <param name="submissionID">Using Nullable because everything seems to be nullable in this entire project</param>
 /// <returns></returns>
 public static Voat.Domain.Models.Submission Retrieve(int?submissionID)
 {
     if (submissionID.HasValue && submissionID.Value > 0)
     {
         string cacheKey   = CachingKey.Submission(submissionID.Value);
         var    q          = new QuerySubmission(submissionID.Value);
         var    submission = q.Execute();
         return(submission);
     }
     return(null);
 }
Beispiel #2
0
 public static void Remove(int submissionID)
 {
     CacheHandler.Instance.Remove(CachingKey.Submission(submissionID));
 }