/// <summary> /// Gets a download /// </summary> /// <param name="downloadId">Download identifier</param> /// <returns>Download</returns> public virtual Download GetDownloadById(int downloadId) { if (downloadId == 0) { return(null); } return(_downloadRepository.FirstOrDefault(downloadId)); }