public async Task <ActionResult> GetPolicyAsync(int officeId, int userId) { var model = await MenuAccessPolicyModel.GetAsync(this.AppUser, officeId, userId).ConfigureAwait(true); return(this.Ok(model)); }
public async Task <ActionResult> UserPolicyAsync() { var model = await MenuAccessPolicyModel.GetAsync(this.AppUser).ConfigureAwait(true); return(this.FrapidView(this.GetRazorView <AreaRegistration>("MenuPolicy/Policy.cshtml", this.Tenant), model)); }