public ProtoRoleProjection(IProtoRole existing) { Id = existing.Id; Name = existing.Name; Description = existing.Description; CreatedUtc = existing.CreatedUtc; UpdatedUtc = existing.UpdatedUtc; }
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() } }); }