Ejemplo n.º 1
0
 /// <summary>
 /// Create new Permission
 /// </summary>
 /// <param name="obj"></param>
 /// <returns></returns>
 public IdentityResult CreatePermission(Permission obj)
 {
     _permissionStore.Create(obj);
     return(IdentityResult.Success);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Create new Permission Async
        /// </summary>
        /// <param name="obj"></param>
        /// <returns></returns>
        public async Task <IdentityResult> CreatePermissionAsync(Permission obj)
        {
            await _permissionStore.CreateAsync(obj);

            return(IdentityResult.Success);
        }