public virtual IActionResult ListTypes()
        {
            //if (!_permissionService.Authorize(StandardPermissionProvider.ManageActivityLog))
            //    return AccessDeniedView();

            //prepare model
            var model = _activityLogModelFactory.PrepareActivityLogTypeModels();

            return(View(model));
        }
        public async Task <IActionResult> ListTypes()
        {
            if (!await _permissionService.AuthorizeAsync(StandardPermissionProvider.ManageActivityLog))
            {
                return(AccessDeniedView());
            }

            var model = await _activityLogModelFactory.PrepareActivityLogTypeModels();

            return(View(model));
        }
 public virtual IActionResult ListTypes()
 {
     //prepare model
     System.Collections.Generic.IList <ActivityLogTypeModel> model = _activityLogModelFactory.PrepareActivityLogTypeModels();
     return(View(model));
 }