/// <summary>
        /// Downloads the specified file by id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        public ActionResult Download(int id, Guid identityToken)
        {
            try
            {
                FileViewModel      file = _fileService.GetFileByIdAndIdentityToken(id, identityToken);
                ContentDisposition contentDisposition = new System.Net.Mime.ContentDisposition
                {
                    FileName = file.FileName,
                    Inline   = false,
                };

                Response.AppendHeader("Content-Disposition", contentDisposition.ToString());
                return(File(file.Content, file.ContentType));
            }
            catch (Exception)
            {
                return(RedirectToAction("Index", "Home"));
            }
        }