Exemplo n.º 1
0
        public ActionResult Day(BasePath b)
        {
            var d = DayStory.GetSingleDay(b) ?? new DayStory {
                Day = b.Date
            };

            return(View("Day", d));
        }
Exemplo n.º 2
0
 public ActionResult Details(BasePath b)
 {
     if (b.Date != null)
     {
         return(View(DayStory.GetSingleDay(b)));
     }
     return(null);
 }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 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));
        }
Exemplo n.º 6
0
        public ActionResult Refresh(BasePath b)
        {
            var d = DayStory.GetSingleDay(b);

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