コード例 #1
0
        public ActionResult Upload()
        {
            UploadFormViewModel newForm = uploadManager.NewUploadForm();

            if (Session["updateMessage"] != null)
            {
                var postMessage = Session["updateMessage"];
                Session.Remove("updateMessage");
                ViewBag.Collection = postMessage;
            }
            if (uploadManager.isItemCollectionFull())
            {
                Session["errorMessage"] = Resources.Processing.ProcessMaxItems;
                return(RedirectToAction("Index", "Items"));
            }
            return(View(newForm));
        }