コード例 #1
0
        public ActionResult Index(string username, string message, HttpPostedFileBase inputFile)
        {
            // add the guestbook entry to Azure
            var azure = new GuestBookService("DataConnectionString");

            azure.AddGuestBookEntry(username, message, inputFile.FileName, inputFile.ContentType, inputFile.InputStream);

            // redirect back to the "GET" action
            return(RedirectToAction("Index"));
        }