/// <summary>
 /// Returns the Context Item as strongly typed
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 protected virtual T GetContext <T>(GetKnownOptions options = null) where T : class
 {
     return(MvcContext.GetContextItem <T>(options));
 }
Beispiel #2
0
 /// <summary>
 /// Returns the Context Item as strongly typed
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <returns></returns>
 public T GetContext <T>(GetKnownOptions options = null) where T : class
 {
     return(MvcContext.GetContextItem <T>(options ?? new GetKnownOptions()));
 }