public ActionResult BlogSWF() { var model = ImgFlashService.PageLoad(i => true).FirstOrDefault(); //前台的所有东西都得谨慎 if (model == null) { model = new LoT.Model.ImgFlash() { TopTitle = "Don't complain about things you are not willing to work hard to change.", BottomTitle = "如果你不愿意去努力的改变,那么就不要去抱怨。" }; } return(View(model)); }
public ActionResult BlogSWF() { var model = ImgFlashService.PageLoad(i => true).FirstOrDefault(); //前台的所有东西都得谨慎 if (model == null) { model = new LoT.Model.ImgFlash() { TopTitle = "Don't complain about things you are not willing to work hard to change.", BottomTitle = "如果你不愿意去努力的改变,那么就不要去抱怨。" }; } return View(model); }