daily pastebin goal
26%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public class TimeController : Controller
  2. {
  3.     [ChildActionOnly]
  4.     [OutputCache(Duration = 600)]
  5.     public PartialViewResult Index()
  6.     {
  7.         ViewBag.CurrentTime = DateTime.Now;
  8.         return PartialView();
  9.     }
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top