示例#1
0
        public ActionResult Day(BasePath b)
        {
            var d = DayStory.GetSingleDay(b) ?? new DayStory {
                Day = b.Date
            };

            return(View("Day", d));
        }
示例#2
0
 public ActionResult Details(BasePath b)
 {
     if (b.Date != null)
     {
         return(View(DayStory.GetSingleDay(b)));
     }
     return(null);
 }
示例#3
0
        public ActionResult DayEdit(string category, string id)
        {
            var b = new BasePath()
            {
                Category = category, Date = id
            };
            var d = DayStory.GetSingleDay(b);

            return(View("Day", d));
        }
示例#4
0
        public ActionResult UploadEdit(string category, string id)
        {
            var b = new BasePath()
            {
                Date = id, Category = category
            };
            var d = DayStory.GetSingleDay(b);

            //var day = DayStory.GetSingleDay(new BasePath(){Category = d.Category, Date = d.Day, Path = ConfigurationManager.AppSettings["UploadUrl"]}) ?? new DayStory {Day = d.Day};
            return(View("Upload", d));
        }
示例#5
0
        public ActionResult Day(BasePath b)
        {
            var d = new DayStory();

            if (b.Date == null)
            {
                d.Day = DateTime.Now.ToShortDateString();
                //d.Category = "main";
            }
            else
            {
                d = DayStory.GetSingleDay(b);
            }

            return(View("Day", d));
        }
示例#6
0
        public ActionResult Refresh(BasePath b)
        {
            var d = DayStory.GetSingleDay(b);

            return(View("Upload", d));
        }