/// <summary> /// Updates the news program /// </summary> /// <param name="newsProgram">News Program</param> public virtual void UpdateNewsProgram(NewsProgram newsProgram) { if (newsProgram == null) { throw new ArgumentNullException("newsProgram"); } _newsProgramRepository.Update(newsProgram); _cacheManager.RemoveByPattern(NEWSPROGRAM_PATTERN_KEY); //event notification _eventPublisher.EntityUpdated(newsProgram); }
public static NewsProgram ToEntity(this NewsProgramModel model, NewsProgram destination) { return(model.MapTo(destination)); }
public static NewsProgramModel ToModel(this NewsProgram entity) { return(entity.MapTo <NewsProgram, NewsProgramModel>()); }