示例#1
0
        public IActionResult Index(string urn)
        {
            var amendments = _amendmentService.GetAmendmentsListViewModel(urn);

            return(View(amendments));
        }
 public AmendmentsListViewModel GetAmendmentsListViewModel(string urn)
 {
     return(_cache.GetOrCreate(string.Format(GetAmendmentKeyFormat, CheckingWindow, urn), () => _amendmentService.GetAmendmentsListViewModel(urn),
                               TimeSpan.FromDays(1), databaseId: RedisDb.General));
 }