Example #1
0
        public ActionResult Export(string fileId)
        {
            LopocaFile file = fileManager.FindFileBy(fileId);

            var userId = System.Web.HttpContext.Current.User.Identity.GetUserId();

            //set history record with status type "Open"
            fileManager.AddHistory(file.Id, userId);

            return(Content(fileId));
        }