/// <summary> /// Deletes a blog post /// </summary> /// <param name="entity">Blog post</param> public virtual void Delete(application entity) { if (entity == null) throw new ArgumentNullException("entity"); _repository.Delete(entity); CacheManager.RemoveByPattern(APPLACATION_PATTERN_KEY); }
/// <summary> /// Inserts an blog post /// </summary> /// <param name="blogPost">Blog post</param> public virtual void Insert(application entity) { if (entity == null) throw new ArgumentNullException("blogPost"); _repository.Add(entity); CacheManager.RemoveByPattern(APPLACATION_PATTERN_KEY); }