public ActionResult Day(BasePath b) { var d = DayStory.GetSingleDay(b) ?? new DayStory { Day = b.Date }; return(View("Day", d)); }
public ActionResult Details(BasePath b) { if (b.Date != null) { return(View(DayStory.GetSingleDay(b))); } return(null); }
public ActionResult DayEdit(string category, string id) { var b = new BasePath() { Category = category, Date = id }; var d = DayStory.GetSingleDay(b); return(View("Day", d)); }
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)); }
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)); }
public ActionResult Refresh(BasePath b) { var d = DayStory.GetSingleDay(b); return(View("Upload", d)); }