/// <summary>
        /// Gets the list items.
        /// </summary>
        /// <param name="status">The status.</param>
        /// <returns></returns>
        public List <SelectListItem> GetListItems(MediaStatus status)
        {
            List <SelectListItem> items = PhotoHtmlHelper.PrivacyList();

            items.ForEach(o => o.Selected = o.Value.Equals(status.ToString(), StringComparison.InvariantCultureIgnoreCase));
            return(items);
        }
 /// <summary>
 /// Updates the status.
 /// </summary>
 /// <param name="mediaId">The media id.</param>
 /// <param name="userId">The user id.</param>
 /// <param name="mediaStatus">The media status.</param>
 public void UpdateStatus(int mediaId, int userId, MediaStatus mediaStatus)
 {
     database.NonQuery("Media_UpdateStatus", new{mediaId,userId, status = mediaStatus.ToString()});
 }
        /// <summary>
        /// Retrieves the by status.
        /// </summary>
        /// <param name="status">The status.</param>
        /// <param name="userId">The user id.</param>
        /// <returns></returns>
        public List<Media> RetrieveByStatus(MediaStatus status, int userId)
        {
            List<Media> media = database.PopulateCollection("Media_RetrieveByStatus", new { status = status.ToString(), userId }, database.AutoPopulate<Media>);
            _hydrationService.Populate(media);

            return media;
        }
 /// <summary>
 /// Gets the list items.
 /// </summary>
 /// <param name="status">The status.</param>
 /// <returns></returns>
 public List<SelectListItem> GetListItems(MediaStatus status)
 {
     List<SelectListItem> items = PhotoHtmlHelper.PrivacyList();
     items.ForEach(o => o.Selected = o.Value.Equals(status.ToString(), StringComparison.InvariantCultureIgnoreCase));
     return items;
 }
 /// <summary>
 /// Updates the status.
 /// </summary>
 /// <param name="mediaId">The media id.</param>
 /// <param name="userId">The user id.</param>
 /// <param name="mediaStatus">The media status.</param>
 public void UpdateStatus(int mediaId, int userId, MediaStatus mediaStatus)
 {
     database.NonQuery("Media_UpdateStatus", new{ mediaId, userId, status = mediaStatus.ToString() });
 }
        /// <summary>
        /// Retrieves the by status.
        /// </summary>
        /// <param name="status">The status.</param>
        /// <param name="userId">The user id.</param>
        /// <returns></returns>
        public List <Media> RetrieveByStatus(MediaStatus status, int userId)
        {
            List <Media> media = database.PopulateCollection("Media_RetrieveByStatus", new { status = status.ToString(), userId }, database.AutoPopulate <Media>);

            _hydrationService.Populate(media);

            return(media);
        }