Beispiel #1
0
        //public ActionResult Photo()
        //{
        //    return View();
        //}

        //public string UpLoadFile(HttpPostedFileBase file)
        //{
        //    if(file.FileName.Equals(string.Empty))
        //    {
        //        return "this is a empty file";
        //    }
        //    else
        //    {
        //        return "the file name = " + file.FileName;
        //    }
        //}


        public ActionResult VideoList(int nowPageNum = 1)
        {
            VideoContext context = new VideoContext()
            {
                NowPage = nowPageNum,
            };

            context.Init();
            return(View(model: context));
        }