ServiceAuthorizationExtensions.AuthorizeCreate<TRow> method (1 of 2)

namespace: Serenity.Data   assemblySerenity.Net.Services

Authorizes create request access similar to [AuthorizeCreate] attribute.

public static void AuthorizeCreate<TRow>(this IRequestContext context)
parameter description
TRow Type of row to get Insert/Modify/Read permission attribute from
context Request context

See Also


ServiceAuthorizationExtensions.AuthorizeCreate<TRow> method (2 of 2)

namespace: Serenity.Data   assemblySerenity.Net.Services

Authorizes create request access similar to [AuthorizeCreate] attribute.

public static void AuthorizeCreate<TRow>(this IPermissionService permissions, 
    ITextLocalizer localizer)
parameter description
TRow Type of row to get Insert/Modify/Read permission attribute from
permissions Permission service
localizer Text localizer

See Also