Example #1
0
 public ProtoRoleProjection(IProtoRole existing)
 {
     Id          = existing.Id;
     Name        = existing.Name;
     Description = existing.Description;
     CreatedUtc  = existing.CreatedUtc;
     UpdatedUtc  = existing.UpdatedUtc;
 }
Example #2
0
        public FurtherValidationResult DeleteProtoRole(IProtoRole role)
        {
            var ir = DeleteAsync((ApplicationRole)role).Result;

            if (ir.Succeeded)
            {
                return(FurtherValidationResult.Ok);
            }
            return(new FurtherValidationResult {
                Errors =
                {
                    [FurtherValidationResult.GLOBAL_ERROR_FIELD_NAME] = ir.Errors.ToArray()
                }
            });
        }