コード例 #1
0
        public ActionResult Sell()
        {
            var model = new ArticleViewModel();

            Session["images"] = null;
            model.Courses     = Repository.GetAllCourses().ToList();
            ThreadPool.QueueUserWorkItem(state =>
            {
                var arguments = state as Tuple <string, string>;
                FileSystemFacade.CleanTempFolder(uploadsPath: arguments.Item1, userId: arguments.Item2);
            }, state: new Tuple <string, string>(Server.MapPath(UPLOADS_PATH), User.Identity.GetUserId()));

            return(View(model));
        }