Ejemplo n.º 1
0
 public static AuditScope GetCurrentAuditScope(this System.Web.Mvc.Controller controller)
 {
     return(AuditAttribute.GetCurrentScope(controller.HttpContext));
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Gets the current Audit Scope.
        /// </summary>
        /// <param name="controller">The MVC controller.</param>
        /// <returns>The current Audit Scope or NULL.</returns>
#if NETSTANDARD1_6
        public static AuditScope GetCurrentAuditScope(this Microsoft.AspNetCore.Mvc.Controller controller)
        {
            return(AuditAttribute.GetCurrentScope(controller.HttpContext));
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Gets the current Audit Scope.
 /// </summary>
 /// <param name="page">The razor page.</param>
 /// <returns>The current Audit Scope or NULL.</returns>
 public static AuditScope GetCurrentAuditScope(this Microsoft.AspNetCore.Mvc.RazorPages.PageModel page)
 {
     return(AuditAttribute.GetCurrentScope(page.HttpContext));
 }