/// <summary> /// Deletes a download /// </summary> /// <param name="download">Download</param> public virtual void DeleteDownload(Download download) { if (download == null) throw new ArgumentNullException("download"); _downloadRepository.Delete(download); _eventPubisher.EntityDeleted(download); }
/// <summary> /// Inserts a download /// </summary> /// <param name="download">Download</param> public virtual void InsertDownload(Download download) { if (download == null) throw new ArgumentNullException("download"); _downloadRepository.Insert(download); _eventPubisher.EntityInserted(download); }